From 51d90e23c9237772a2c327a7fe518d5554532861 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sat, 28 Jun 2014 12:04:19 -0500 Subject: Remove old south migrations Django 1.7 has built-in migrations support, so we no longer want these around. All existing installs should be fully migrated at this point to the latest schema. Signed-off-by: Dan McGee --- packages/migrations/0001_initial.py | 72 ------ .../migrations/0002_populate_package_relation.py | 233 ------------------- packages/migrations/0003_auto__add_packagegroup.py | 109 --------- packages/migrations/0004_auto__add_license.py | 118 ---------- packages/migrations/0005_move_license_data.py | 120 ---------- ...add_provision__add_conflict__add_replacement.py | 167 -------------- ...0007_auto__add_field_packagerelation_created.py | 138 ------------ packages/migrations/0008_add_signoff_model.py | 166 -------------- .../migrations/0009_add_packagegroup_name_index.py | 149 ------------- .../0010_auto__add_signoffspecification.py | 183 --------------- ...11_auto__chg_field_signoffspecification_user.py | 165 -------------- packages/migrations/0012_auto__add_flagrequest.py | 201 ----------------- .../0013_auto__add_field_flagrequest_version.py | 180 --------------- .../0014_auto__chg_field_flagrequest_ip_address.py | 181 --------------- packages/migrations/0015_auto__add_depend.py | 199 ----------------- packages/migrations/0016_copy_depends_data.py | 246 --------------------- packages/migrations/0017_auto__add_update.py | 226 ------------------- packages/migrations/0018_create_created_indexes.py | 214 ------------------ .../0019_package_update_pkgname_index.py | 208 ----------------- .../0020_auto__add_field_depend_deptype.py | 212 ------------------ packages/migrations/0021_migrate_optional_deps.py | 210 ------------------ .../0022_auto__del_field_depend_optional.py | 211 ------------------ .../0023_split_flag_req_version_field.py | 222 ------------------- .../migrations/0024_move_flag_req_version_info.py | 218 ------------------ .../0025_auto__del_field_flagrequest_version.py | 213 ------------------ 25 files changed, 4561 deletions(-) delete mode 100644 packages/migrations/0001_initial.py delete mode 100644 packages/migrations/0002_populate_package_relation.py delete mode 100644 packages/migrations/0003_auto__add_packagegroup.py delete mode 100644 packages/migrations/0004_auto__add_license.py delete mode 100644 packages/migrations/0005_move_license_data.py delete mode 100644 packages/migrations/0006_auto__add_provision__add_conflict__add_replacement.py delete mode 100644 packages/migrations/0007_auto__add_field_packagerelation_created.py delete mode 100644 packages/migrations/0008_add_signoff_model.py delete mode 100644 packages/migrations/0009_add_packagegroup_name_index.py delete mode 100644 packages/migrations/0010_auto__add_signoffspecification.py delete mode 100644 packages/migrations/0011_auto__chg_field_signoffspecification_user.py delete mode 100644 packages/migrations/0012_auto__add_flagrequest.py delete mode 100644 packages/migrations/0013_auto__add_field_flagrequest_version.py delete mode 100644 packages/migrations/0014_auto__chg_field_flagrequest_ip_address.py delete mode 100644 packages/migrations/0015_auto__add_depend.py delete mode 100644 packages/migrations/0016_copy_depends_data.py delete mode 100644 packages/migrations/0017_auto__add_update.py delete mode 100644 packages/migrations/0018_create_created_indexes.py delete mode 100644 packages/migrations/0019_package_update_pkgname_index.py delete mode 100644 packages/migrations/0020_auto__add_field_depend_deptype.py delete mode 100644 packages/migrations/0021_migrate_optional_deps.py delete mode 100644 packages/migrations/0022_auto__del_field_depend_optional.py delete mode 100644 packages/migrations/0023_split_flag_req_version_field.py delete mode 100644 packages/migrations/0024_move_flag_req_version_info.py delete mode 100644 packages/migrations/0025_auto__del_field_flagrequest_version.py (limited to 'packages/migrations') diff --git a/packages/migrations/0001_initial.py b/packages/migrations/0001_initial.py deleted file mode 100644 index 76e97340..00000000 --- a/packages/migrations/0001_initial.py +++ /dev/null @@ -1,72 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - -class Migration(SchemaMigration): - def forwards(self, orm): - # Adding model 'PackageRelation' - db.create_table('packages_packagerelation', ( - ('pkgbase', self.gf('django.db.models.fields.CharField')(max_length=255)), - ('type', self.gf('django.db.models.fields.PositiveIntegerField')(default=1)), - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('user', self.gf('django.db.models.fields.related.ForeignKey')(related_name='package_relations', to=orm['auth.User'])), - )) - db.send_create_signal('packages', ['PackageRelation']) - # Adding unique constraint on 'PackageRelation', fields ['pkgbase', 'user', 'type'] - db.create_unique('packages_packagerelation', ['pkgbase', 'user_id', 'type']) - - def backwards(self, orm): - # Deleting model 'PackageRelation' - db.delete_table('packages_packagerelation') - # Removing unique constraint on 'PackageRelation', fields ['pkgbase', 'user', 'type'] - db.delete_unique('packages_packagerelation', ['pkgbase', 'user_id', 'type']) - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'packages.packagerelation': { - 'Meta': {'unique_together': "(('pkgbase', 'user', 'type'),)", 'object_name': 'PackageRelation'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'type': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'package_relations'", 'to': "orm['auth.User']"}) - } - } - - complete_apps = ['packages'] diff --git a/packages/migrations/0002_populate_package_relation.py b/packages/migrations/0002_populate_package_relation.py deleted file mode 100644 index b0d32c7a..00000000 --- a/packages/migrations/0002_populate_package_relation.py +++ /dev/null @@ -1,233 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import DataMigration -from django.db import models - -class Migration(DataMigration): - - depends_on = ( - ("main", "0003_migrate_maintainer"), - ) - - def forwards(self, orm): - # search by pkgbase first and insert those records - qs = orm['main.Package'].objects.exclude(maintainer=None).exclude( - pkgbase=None).distinct().values('pkgbase', 'maintainer_id') - for row in qs: - pr, created = orm.PackageRelation.objects.get_or_create( - pkgbase=row['pkgbase'], user__id=row['maintainer_id'], - defaults={'user_id': row['maintainer_id']}) - - # next search by pkgname first and insert those records - qs = orm['main.Package'].objects.exclude(maintainer=None).filter( - pkgbase=None).distinct().values('pkgname', 'maintainer_id') - for row in qs: - pr, created = orm.PackageRelation.objects.get_or_create( - pkgbase=row['pkgname'], user__id=row['maintainer_id'], - defaults={'user_id': row['maintainer_id']}) - - def backwards(self, orm): - if not db.dry_run: - orm.PackageRelation.objects.all().delete() - pass - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'main.altforum': { - 'Meta': {'object_name': 'AltForum', 'db_table': "'alt_forums'"}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'language': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'url': ('django.db.models.fields.CharField', [], {'max_length': '255'}) - }, - 'main.arch': { - 'Meta': {'object_name': 'Arch', 'db_table': "'arches'"}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}) - }, - 'main.donor': { - 'Meta': {'object_name': 'Donor', 'db_table': "'donors'"}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}) - }, - 'main.externalproject': { - 'Meta': {'object_name': 'ExternalProject'}, - 'description': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'url': ('django.db.models.fields.URLField', [], {'max_length': '200'}) - }, - 'main.mirror': { - 'Meta': {'object_name': 'Mirror'}, - 'active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'admin_email': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'blank': 'True'}), - 'country': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'isos': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'notes': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'public': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'rsync_password': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '50', 'blank': 'True'}), - 'rsync_user': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '50', 'blank': 'True'}), - 'tier': ('django.db.models.fields.SmallIntegerField', [], {'default': '2'}), - 'upstream': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Mirror']", 'null': 'True'}) - }, - 'main.mirrorprotocol': { - 'Meta': {'object_name': 'MirrorProtocol'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'protocol': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '10'}) - }, - 'main.mirrorrsync': { - 'Meta': {'object_name': 'MirrorRsync'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip': ('django.db.models.fields.CharField', [], {'max_length': '24'}), - 'mirror': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'rsync_ips'", 'to': "orm['main.Mirror']"}) - }, - 'main.mirrorurl': { - 'Meta': {'object_name': 'MirrorUrl'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'mirror': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'urls'", 'to': "orm['main.Mirror']"}), - 'protocol': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'urls'", 'to': "orm['main.MirrorProtocol']"}), - 'url': ('django.db.models.fields.CharField', [], {'max_length': '255'}) - }, - 'main.news': { - 'Meta': {'object_name': 'News', 'db_table': "'news'"}, - 'author': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'news_author'", 'to': "orm['auth.User']"}), - 'content': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'postdate': ('django.db.models.fields.DateField', [], {'auto_now_add': 'True', 'blank': 'True'}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}) - }, - 'main.package': { - 'Meta': {'object_name': 'Package', 'db_table': "'packages'"}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'packages'", 'to': "orm['main.Arch']"}), - 'build_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'compressed_size': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True'}), - 'files_last_update': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'installed_size': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True'}), - 'last_update': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'license': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'maintainer': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'maintained_packages'", 'null': 'True', 'to': "orm['auth.User']"}), - 'needupdate': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}), - 'pkgdesc': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgname': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'packages'", 'to': "orm['main.Repo']"}), - 'url': ('django.db.models.fields.CharField', [], {'max_length': '255'}) - }, - 'main.packagedepend': { - 'Meta': {'object_name': 'PackageDepend', 'db_table': "'package_depends'"}, - 'depname': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'depvcmp': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Package']"}) - }, - 'main.packagefile': { - 'Meta': {'object_name': 'PackageFile', 'db_table': "'package_files'"}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'path': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Package']"}) - }, - 'main.press': { - 'Meta': {'object_name': 'Press', 'db_table': "'press'"}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'url': ('django.db.models.fields.CharField', [], {'max_length': '255'}) - }, - 'main.repo': { - 'Meta': {'object_name': 'Repo', 'db_table': "'repos'"}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'testing': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}) - }, - 'main.signoff': { - 'Meta': {'object_name': 'Signoff'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'packager': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Package']"}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}) - }, - 'main.todolist': { - 'Meta': {'object_name': 'Todolist', 'db_table': "'todolists'"}, - 'creator': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"}), - 'date_added': ('django.db.models.fields.DateField', [], {'auto_now_add': 'True', 'blank': 'True'}), - 'description': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}) - }, - 'main.todolistpkg': { - 'Meta': {'unique_together': "(('list', 'pkg'),)", 'object_name': 'TodolistPkg', 'db_table': "'todolist_pkgs'"}, - 'complete': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'list': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Todolist']"}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Package']"}) - }, - 'main.userprofile': { - 'Meta': {'object_name': 'UserProfile', 'db_table': "'user_profiles'"}, - 'alias': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'allowed_repos': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['main.Repo']", 'blank': 'True'}), - 'favorite_distros': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'interests': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}), - 'languages': ('django.db.models.fields.CharField', [], {'max_length': '50', 'null': 'True', 'blank': 'True'}), - 'location': ('django.db.models.fields.CharField', [], {'max_length': '50', 'null': 'True', 'blank': 'True'}), - 'notify': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'occupation': ('django.db.models.fields.CharField', [], {'max_length': '50', 'null': 'True', 'blank': 'True'}), - 'other_contact': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}), - 'picture': ('django.db.models.fields.files.FileField', [], {'default': "'devs/silhouette.png'", 'max_length': '100'}), - 'public_email': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'roles': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'userprofile_user'", 'unique': 'True', 'to': "orm['auth.User']"}), - 'website': ('django.db.models.fields.CharField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}), - 'yob': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}) - }, - 'packages.packagerelation': { - 'Meta': {'unique_together': "(('pkgbase', 'user', 'type'),)", 'object_name': 'PackageRelation'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'type': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'package_relations'", 'to': "orm['auth.User']"}) - } - } - - complete_apps = ['main', 'packages'] diff --git a/packages/migrations/0003_auto__add_packagegroup.py b/packages/migrations/0003_auto__add_packagegroup.py deleted file mode 100644 index c40b6429..00000000 --- a/packages/migrations/0003_auto__add_packagegroup.py +++ /dev/null @@ -1,109 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - -class Migration(SchemaMigration): - - def forwards(self, orm): - - # Adding model 'PackageGroup' - db.create_table('packages_packagegroup', ( - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('pkg', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['main.Package'])), - ('name', self.gf('django.db.models.fields.CharField')(max_length=255)), - )) - db.send_create_signal('packages', ['PackageGroup']) - - - def backwards(self, orm): - - # Deleting model 'PackageGroup' - db.delete_table('packages_packagegroup') - - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'main.arch': { - 'Meta': {'object_name': 'Arch', 'db_table': "'arches'"}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}) - }, - 'main.package': { - 'Meta': {'object_name': 'Package', 'db_table': "'packages'"}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'packages'", 'to': "orm['main.Arch']"}), - 'build_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'compressed_size': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True'}), - 'filename': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'files_last_update': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'flag_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'installed_size': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True'}), - 'last_update': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'license': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgdesc': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}), - 'pkgname': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'packages'", 'to': "orm['main.Repo']"}), - 'url': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}) - }, - 'main.repo': { - 'Meta': {'object_name': 'Repo', 'db_table': "'repos'"}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'testing': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}) - }, - 'packages.packagegroup': { - 'Meta': {'object_name': 'PackageGroup'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Package']"}) - }, - 'packages.packagerelation': { - 'Meta': {'unique_together': "(('pkgbase', 'user', 'type'),)", 'object_name': 'PackageRelation'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'type': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'package_relations'", 'to': "orm['auth.User']"}) - } - } - - complete_apps = ['packages'] diff --git a/packages/migrations/0004_auto__add_license.py b/packages/migrations/0004_auto__add_license.py deleted file mode 100644 index 001440fe..00000000 --- a/packages/migrations/0004_auto__add_license.py +++ /dev/null @@ -1,118 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - -class Migration(SchemaMigration): - - def forwards(self, orm): - # Adding model 'License' - db.create_table('packages_license', ( - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('pkg', self.gf('django.db.models.fields.related.ForeignKey')(related_name='licenses', to=orm['main.Package'])), - ('name', self.gf('django.db.models.fields.CharField')(max_length=255)), - )) - db.send_create_signal('packages', ['License']) - - - def backwards(self, orm): - # Deleting model 'License' - db.delete_table('packages_license') - - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'main.arch': { - 'Meta': {'ordering': "['name']", 'object_name': 'Arch', 'db_table': "'arches'"}, - 'agnostic': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}) - }, - 'main.package': { - 'Meta': {'ordering': "('pkgname',)", 'object_name': 'Package', 'db_table': "'packages'"}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'packages'", 'to': "orm['main.Arch']"}), - 'build_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'compressed_size': ('django.db.models.fields.BigIntegerField', [], {'null': 'True'}), - 'filename': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'files_last_update': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'flag_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'installed_size': ('django.db.models.fields.BigIntegerField', [], {'null': 'True'}), - 'last_update': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'license': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}), - 'packager': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True'}), - 'packager_str': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgdesc': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}), - 'pkgname': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'packages'", 'to': "orm['main.Repo']"}), - 'url': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}) - }, - 'main.repo': { - 'Meta': {'ordering': "['name']", 'object_name': 'Repo', 'db_table': "'repos'"}, - 'bugs_project': ('django.db.models.fields.SmallIntegerField', [], {'default': '1'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'svn_root': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'testing': ('django.db.models.fields.BooleanField', [], {'default': 'False'}) - }, - 'packages.license': { - 'Meta': {'object_name': 'License'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'licenses'", 'to': "orm['main.Package']"}) - }, - 'packages.packagegroup': { - 'Meta': {'object_name': 'PackageGroup'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'groups'", 'to': "orm['main.Package']"}) - }, - 'packages.packagerelation': { - 'Meta': {'unique_together': "(('pkgbase', 'user', 'type'),)", 'object_name': 'PackageRelation'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'type': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'package_relations'", 'to': "orm['auth.User']"}) - } - } - - complete_apps = ['packages'] diff --git a/packages/migrations/0005_move_license_data.py b/packages/migrations/0005_move_license_data.py deleted file mode 100644 index 1c1e689a..00000000 --- a/packages/migrations/0005_move_license_data.py +++ /dev/null @@ -1,120 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import DataMigration -from django.db import models - -class Migration(DataMigration): - - depends_on = ( - # the last structural change to the package model - ('main', '0026_auto__add_field_package_packager_str__add_field_package_packager'), - ) - - def forwards(self, orm): - "Migrate the flat license text to a seperate relation." - for pkg in orm['main.Package'].objects.all(): - licenses = pkg.license.split(u', ') - for license in licenses: - pkg.licenses.create(name=license) - - def backwards(self, orm): - for pkg in orm['main.Package'].objects.all(): - pkg.license = u', '.join([l.name for l in pkg.licenses.all()]) - pkg.save() - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'main.arch': { - 'Meta': {'ordering': "['name']", 'object_name': 'Arch', 'db_table': "'arches'"}, - 'agnostic': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}) - }, - 'main.package': { - 'Meta': {'ordering': "('pkgname',)", 'object_name': 'Package', 'db_table': "'packages'"}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'packages'", 'to': "orm['main.Arch']"}), - 'build_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'compressed_size': ('django.db.models.fields.BigIntegerField', [], {'null': 'True'}), - 'filename': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'files_last_update': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'flag_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'installed_size': ('django.db.models.fields.BigIntegerField', [], {'null': 'True'}), - 'last_update': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'license': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}), - 'packager': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True'}), - 'packager_str': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgdesc': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}), - 'pkgname': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'packages'", 'to': "orm['main.Repo']"}), - 'url': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}) - }, - 'main.repo': { - 'Meta': {'ordering': "['name']", 'object_name': 'Repo', 'db_table': "'repos'"}, - 'bugs_project': ('django.db.models.fields.SmallIntegerField', [], {'default': '1'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'svn_root': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'testing': ('django.db.models.fields.BooleanField', [], {'default': 'False'}) - }, - 'packages.license': { - 'Meta': {'object_name': 'License'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'licenses'", 'to': "orm['main.Package']"}) - }, - 'packages.packagegroup': { - 'Meta': {'object_name': 'PackageGroup'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'groups'", 'to': "orm['main.Package']"}) - }, - 'packages.packagerelation': { - 'Meta': {'unique_together': "(('pkgbase', 'user', 'type'),)", 'object_name': 'PackageRelation'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'type': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'package_relations'", 'to': "orm['auth.User']"}) - } - } - - complete_apps = ['packages'] diff --git a/packages/migrations/0006_auto__add_provision__add_conflict__add_replacement.py b/packages/migrations/0006_auto__add_provision__add_conflict__add_replacement.py deleted file mode 100644 index c764ce77..00000000 --- a/packages/migrations/0006_auto__add_provision__add_conflict__add_replacement.py +++ /dev/null @@ -1,167 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - -class Migration(SchemaMigration): - - def forwards(self, orm): - # Adding model 'Provision' - db.create_table('packages_provision', ( - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('pkg', self.gf('django.db.models.fields.related.ForeignKey')(related_name='provides', to=orm['main.Package'])), - ('name', self.gf('django.db.models.fields.CharField')(max_length=255, db_index=True)), - ('version', self.gf('django.db.models.fields.CharField')(default='', max_length=255)), - )) - db.send_create_signal('packages', ['Provision']) - - # Adding model 'Conflict' - db.create_table('packages_conflict', ( - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('pkg', self.gf('django.db.models.fields.related.ForeignKey')(related_name='conflicts', to=orm['main.Package'])), - ('name', self.gf('django.db.models.fields.CharField')(max_length=255, db_index=True)), - ('comparison', self.gf('django.db.models.fields.CharField')(default='', max_length=255)), - ('version', self.gf('django.db.models.fields.CharField')(default='', max_length=255)), - )) - db.send_create_signal('packages', ['Conflict']) - - # Adding model 'Replacement' - db.create_table('packages_replacement', ( - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('pkg', self.gf('django.db.models.fields.related.ForeignKey')(related_name='replaces', to=orm['main.Package'])), - ('name', self.gf('django.db.models.fields.CharField')(max_length=255, db_index=True)), - ('comparison', self.gf('django.db.models.fields.CharField')(default='', max_length=255)), - ('version', self.gf('django.db.models.fields.CharField')(default='', max_length=255)), - )) - db.send_create_signal('packages', ['Replacement']) - - - def backwards(self, orm): - # Deleting model 'Provision' - db.delete_table('packages_provision') - # Deleting model 'Conflict' - db.delete_table('packages_conflict') - # Deleting model 'Replacement' - db.delete_table('packages_replacement') - - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'main.arch': { - 'Meta': {'ordering': "['name']", 'object_name': 'Arch', 'db_table': "'arches'"}, - 'agnostic': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}) - }, - 'main.package': { - 'Meta': {'ordering': "('pkgname',)", 'object_name': 'Package', 'db_table': "'packages'"}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'packages'", 'to': "orm['main.Arch']"}), - 'build_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'compressed_size': ('django.db.models.fields.BigIntegerField', [], {'null': 'True'}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'filename': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'files_last_update': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'flag_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'installed_size': ('django.db.models.fields.BigIntegerField', [], {'null': 'True'}), - 'last_update': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'packager': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True'}), - 'packager_str': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgdesc': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}), - 'pkgname': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'packages'", 'to': "orm['main.Repo']"}), - 'url': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}) - }, - 'main.repo': { - 'Meta': {'ordering': "['name']", 'object_name': 'Repo', 'db_table': "'repos'"}, - 'bugs_project': ('django.db.models.fields.SmallIntegerField', [], {'default': '1'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'staging': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'svn_root': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'testing': ('django.db.models.fields.BooleanField', [], {'default': 'False'}) - }, - 'packages.conflict': { - 'Meta': {'ordering': "['name']", 'object_name': 'Conflict'}, - 'comparison': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'conflicts'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.license': { - 'Meta': {'ordering': "['name']", 'object_name': 'License'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'licenses'", 'to': "orm['main.Package']"}) - }, - 'packages.packagegroup': { - 'Meta': {'object_name': 'PackageGroup'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'groups'", 'to': "orm['main.Package']"}) - }, - 'packages.packagerelation': { - 'Meta': {'unique_together': "(('pkgbase', 'user', 'type'),)", 'object_name': 'PackageRelation'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'type': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'package_relations'", 'to': "orm['auth.User']"}) - }, - 'packages.provision': { - 'Meta': {'ordering': "['name']", 'object_name': 'Provision'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'provides'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.replacement': { - 'Meta': {'ordering': "['name']", 'object_name': 'Replacement'}, - 'comparison': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'replaces'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - } - } - - complete_apps = ['packages'] diff --git a/packages/migrations/0007_auto__add_field_packagerelation_created.py b/packages/migrations/0007_auto__add_field_packagerelation_created.py deleted file mode 100644 index b030909e..00000000 --- a/packages/migrations/0007_auto__add_field_packagerelation_created.py +++ /dev/null @@ -1,138 +0,0 @@ -# encoding: utf-8 -import datetime -from pytz import utc -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - -class Migration(SchemaMigration): - - def forwards(self, orm): - old_date = datetime.datetime(2000, 1, 1) - old_date = old_date.replace(tzinfo=utc) - db.add_column('packages_packagerelation', 'created', self.gf('django.db.models.fields.DateTimeField')(default=old_date), keep_default=False) - - def backwards(self, orm): - db.delete_column('packages_packagerelation', 'created') - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'main.arch': { - 'Meta': {'ordering': "['name']", 'object_name': 'Arch', 'db_table': "'arches'"}, - 'agnostic': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}) - }, - 'main.package': { - 'Meta': {'ordering': "('pkgname',)", 'object_name': 'Package', 'db_table': "'packages'"}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'packages'", 'to': "orm['main.Arch']"}), - 'build_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'compressed_size': ('django.db.models.fields.BigIntegerField', [], {'null': 'True'}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'filename': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'files_last_update': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'flag_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'installed_size': ('django.db.models.fields.BigIntegerField', [], {'null': 'True'}), - 'last_update': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'packager': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True'}), - 'packager_str': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgdesc': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}), - 'pkgname': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'packages'", 'to': "orm['main.Repo']"}), - 'url': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}) - }, - 'main.repo': { - 'Meta': {'ordering': "['name']", 'object_name': 'Repo', 'db_table': "'repos'"}, - 'bugs_category': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'bugs_project': ('django.db.models.fields.SmallIntegerField', [], {'default': '1'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'staging': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'svn_root': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'testing': ('django.db.models.fields.BooleanField', [], {'default': 'False'}) - }, - 'packages.conflict': { - 'Meta': {'ordering': "['name']", 'object_name': 'Conflict'}, - 'comparison': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'conflicts'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.license': { - 'Meta': {'ordering': "['name']", 'object_name': 'License'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'licenses'", 'to': "orm['main.Package']"}) - }, - 'packages.packagegroup': { - 'Meta': {'object_name': 'PackageGroup'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'groups'", 'to': "orm['main.Package']"}) - }, - 'packages.packagerelation': { - 'Meta': {'unique_together': "(('pkgbase', 'user', 'type'),)", 'object_name': 'PackageRelation'}, - 'created': ('django.db.models.fields.DateTimeField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'type': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'package_relations'", 'to': "orm['auth.User']"}) - }, - 'packages.provision': { - 'Meta': {'ordering': "['name']", 'object_name': 'Provision'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'provides'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.replacement': { - 'Meta': {'ordering': "['name']", 'object_name': 'Replacement'}, - 'comparison': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'replaces'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - } - } - - complete_apps = ['packages'] diff --git a/packages/migrations/0008_add_signoff_model.py b/packages/migrations/0008_add_signoff_model.py deleted file mode 100644 index 5feed909..00000000 --- a/packages/migrations/0008_add_signoff_model.py +++ /dev/null @@ -1,166 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - -class Migration(SchemaMigration): - - def forwards(self, orm): - # Adding model 'Signoff' - db.create_table('packages_signoff', ( - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('pkgbase', self.gf('django.db.models.fields.CharField')(max_length=255, db_index=True)), - ('pkgver', self.gf('django.db.models.fields.CharField')(max_length=255)), - ('pkgrel', self.gf('django.db.models.fields.CharField')(max_length=255)), - ('epoch', self.gf('django.db.models.fields.PositiveIntegerField')(default=0)), - ('arch', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['main.Arch'])), - ('repo', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['main.Repo'])), - ('user', self.gf('django.db.models.fields.related.ForeignKey')(related_name='package_signoffs', to=orm['auth.User'])), - ('created', self.gf('django.db.models.fields.DateTimeField')()), - ('revoked', self.gf('django.db.models.fields.DateTimeField')(null=True)), - ('comments', self.gf('django.db.models.fields.TextField')(null=True, blank=True)), - )) - db.send_create_signal('packages', ['Signoff']) - - - def backwards(self, orm): - # Deleting model 'Signoff' - db.delete_table('packages_signoff') - - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'main.arch': { - 'Meta': {'ordering': "['name']", 'object_name': 'Arch', 'db_table': "'arches'"}, - 'agnostic': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}) - }, - 'main.package': { - 'Meta': {'ordering': "('pkgname',)", 'object_name': 'Package', 'db_table': "'packages'"}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'packages'", 'to': "orm['main.Arch']"}), - 'build_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'compressed_size': ('main.models.PositiveBigIntegerField', [], {}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'filename': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'files_last_update': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'flag_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'installed_size': ('main.models.PositiveBigIntegerField', [], {}), - 'last_update': ('django.db.models.fields.DateTimeField', [], {}), - 'packager': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True'}), - 'packager_str': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgdesc': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}), - 'pkgname': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'packages'", 'to': "orm['main.Repo']"}), - 'url': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}) - }, - 'main.repo': { - 'Meta': {'ordering': "['name']", 'object_name': 'Repo', 'db_table': "'repos'"}, - 'bugs_category': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'bugs_project': ('django.db.models.fields.SmallIntegerField', [], {'default': '1'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'staging': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'svn_root': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'testing': ('django.db.models.fields.BooleanField', [], {'default': 'False'}) - }, - 'packages.conflict': { - 'Meta': {'ordering': "['name']", 'object_name': 'Conflict'}, - 'comparison': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'conflicts'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.license': { - 'Meta': {'ordering': "['name']", 'object_name': 'License'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'licenses'", 'to': "orm['main.Package']"}) - }, - 'packages.packagegroup': { - 'Meta': {'object_name': 'PackageGroup'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'groups'", 'to': "orm['main.Package']"}) - }, - 'packages.packagerelation': { - 'Meta': {'unique_together': "(('pkgbase', 'user', 'type'),)", 'object_name': 'PackageRelation'}, - 'created': ('django.db.models.fields.DateTimeField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'type': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'package_relations'", 'to': "orm['auth.User']"}) - }, - 'packages.provision': { - 'Meta': {'ordering': "['name']", 'object_name': 'Provision'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'provides'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.replacement': { - 'Meta': {'ordering': "['name']", 'object_name': 'Replacement'}, - 'comparison': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'replaces'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.signoff': { - 'Meta': {'object_name': 'Signoff'}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Arch']"}), - 'comments': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'created': ('django.db.models.fields.DateTimeField', [], {}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Repo']"}), - 'revoked': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'package_signoffs'", 'to': "orm['auth.User']"}) - } - } - - complete_apps = ['packages'] diff --git a/packages/migrations/0009_add_packagegroup_name_index.py b/packages/migrations/0009_add_packagegroup_name_index.py deleted file mode 100644 index f81e77fc..00000000 --- a/packages/migrations/0009_add_packagegroup_name_index.py +++ /dev/null @@ -1,149 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - -class Migration(SchemaMigration): - - def forwards(self, orm): - db.create_index('packages_packagegroup', ['name']) - - def backwards(self, orm): - db.delete_index('packages_packagegroup', ['name']) - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'main.arch': { - 'Meta': {'ordering': "['name']", 'object_name': 'Arch', 'db_table': "'arches'"}, - 'agnostic': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}) - }, - 'main.package': { - 'Meta': {'ordering': "('pkgname',)", 'object_name': 'Package', 'db_table': "'packages'"}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'packages'", 'to': "orm['main.Arch']"}), - 'build_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'compressed_size': ('main.models.PositiveBigIntegerField', [], {}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'filename': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'files_last_update': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'flag_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'installed_size': ('main.models.PositiveBigIntegerField', [], {}), - 'last_update': ('django.db.models.fields.DateTimeField', [], {}), - 'packager': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True'}), - 'packager_str': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgdesc': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}), - 'pkgname': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'packages'", 'to': "orm['main.Repo']"}), - 'url': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}) - }, - 'main.repo': { - 'Meta': {'ordering': "['name']", 'object_name': 'Repo', 'db_table': "'repos'"}, - 'bugs_category': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'bugs_project': ('django.db.models.fields.SmallIntegerField', [], {'default': '1'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'staging': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'svn_root': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'testing': ('django.db.models.fields.BooleanField', [], {'default': 'False'}) - }, - 'packages.conflict': { - 'Meta': {'ordering': "['name']", 'object_name': 'Conflict'}, - 'comparison': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'conflicts'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.license': { - 'Meta': {'ordering': "['name']", 'object_name': 'License'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'licenses'", 'to': "orm['main.Package']"}) - }, - 'packages.packagegroup': { - 'Meta': {'object_name': 'PackageGroup'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'groups'", 'to': "orm['main.Package']"}) - }, - 'packages.packagerelation': { - 'Meta': {'unique_together': "(('pkgbase', 'user', 'type'),)", 'object_name': 'PackageRelation'}, - 'created': ('django.db.models.fields.DateTimeField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'type': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'package_relations'", 'to': "orm['auth.User']"}) - }, - 'packages.provision': { - 'Meta': {'ordering': "['name']", 'object_name': 'Provision'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'provides'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.replacement': { - 'Meta': {'ordering': "['name']", 'object_name': 'Replacement'}, - 'comparison': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'replaces'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.signoff': { - 'Meta': {'object_name': 'Signoff'}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Arch']"}), - 'comments': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'created': ('django.db.models.fields.DateTimeField', [], {}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Repo']"}), - 'revoked': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'package_signoffs'", 'to': "orm['auth.User']"}) - } - } - - complete_apps = ['packages'] diff --git a/packages/migrations/0010_auto__add_signoffspecification.py b/packages/migrations/0010_auto__add_signoffspecification.py deleted file mode 100644 index da24824e..00000000 --- a/packages/migrations/0010_auto__add_signoffspecification.py +++ /dev/null @@ -1,183 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - -class Migration(SchemaMigration): - - def forwards(self, orm): - db.create_table('packages_signoffspecification', ( - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('pkgbase', self.gf('django.db.models.fields.CharField')(max_length=255, db_index=True)), - ('pkgver', self.gf('django.db.models.fields.CharField')(max_length=255)), - ('pkgrel', self.gf('django.db.models.fields.CharField')(max_length=255)), - ('epoch', self.gf('django.db.models.fields.PositiveIntegerField')(default=0)), - ('arch', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['main.Arch'])), - ('repo', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['main.Repo'])), - ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'])), - ('created', self.gf('django.db.models.fields.DateTimeField')()), - ('required', self.gf('django.db.models.fields.PositiveIntegerField')(default=2)), - ('enabled', self.gf('django.db.models.fields.BooleanField')(default=True)), - ('known_bad', self.gf('django.db.models.fields.BooleanField')(default=False)), - ('comments', self.gf('django.db.models.fields.TextField')(null=True, blank=True)), - )) - db.send_create_signal('packages', ['SignoffSpecification']) - - - def backwards(self, orm): - db.delete_table('packages_signoffspecification') - - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'main.arch': { - 'Meta': {'ordering': "['name']", 'object_name': 'Arch', 'db_table': "'arches'"}, - 'agnostic': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}) - }, - 'main.package': { - 'Meta': {'ordering': "('pkgname',)", 'object_name': 'Package', 'db_table': "'packages'"}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'packages'", 'to': "orm['main.Arch']"}), - 'build_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'compressed_size': ('main.models.PositiveBigIntegerField', [], {}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'filename': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'files_last_update': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'flag_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'installed_size': ('main.models.PositiveBigIntegerField', [], {}), - 'last_update': ('django.db.models.fields.DateTimeField', [], {}), - 'packager': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True'}), - 'packager_str': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pgp_signature': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgdesc': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}), - 'pkgname': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'packages'", 'to': "orm['main.Repo']"}), - 'url': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}) - }, - 'main.repo': { - 'Meta': {'ordering': "['name']", 'object_name': 'Repo', 'db_table': "'repos'"}, - 'bugs_category': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'bugs_project': ('django.db.models.fields.SmallIntegerField', [], {'default': '1'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'staging': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'svn_root': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'testing': ('django.db.models.fields.BooleanField', [], {'default': 'False'}) - }, - 'packages.conflict': { - 'Meta': {'ordering': "['name']", 'object_name': 'Conflict'}, - 'comparison': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'conflicts'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.license': { - 'Meta': {'ordering': "['name']", 'object_name': 'License'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'licenses'", 'to': "orm['main.Package']"}) - }, - 'packages.packagegroup': { - 'Meta': {'object_name': 'PackageGroup'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'groups'", 'to': "orm['main.Package']"}) - }, - 'packages.packagerelation': { - 'Meta': {'unique_together': "(('pkgbase', 'user', 'type'),)", 'object_name': 'PackageRelation'}, - 'created': ('django.db.models.fields.DateTimeField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'type': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'package_relations'", 'to': "orm['auth.User']"}) - }, - 'packages.provision': { - 'Meta': {'ordering': "['name']", 'object_name': 'Provision'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'provides'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.replacement': { - 'Meta': {'ordering': "['name']", 'object_name': 'Replacement'}, - 'comparison': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'replaces'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.signoff': { - 'Meta': {'object_name': 'Signoff'}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Arch']"}), - 'comments': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'created': ('django.db.models.fields.DateTimeField', [], {}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Repo']"}), - 'revoked': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'package_signoffs'", 'to': "orm['auth.User']"}) - }, - 'packages.signoffspecification': { - 'Meta': {'object_name': 'SignoffSpecification'}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Arch']"}), - 'comments': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'created': ('django.db.models.fields.DateTimeField', [], {}), - 'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'known_bad': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Repo']"}), - 'required': ('django.db.models.fields.PositiveIntegerField', [], {'default': '2'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"}) - } - } - - complete_apps = ['packages'] diff --git a/packages/migrations/0011_auto__chg_field_signoffspecification_user.py b/packages/migrations/0011_auto__chg_field_signoffspecification_user.py deleted file mode 100644 index f6e3cdd9..00000000 --- a/packages/migrations/0011_auto__chg_field_signoffspecification_user.py +++ /dev/null @@ -1,165 +0,0 @@ -# encoding: utf-8 -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - -class Migration(SchemaMigration): - - def forwards(self, orm): - db.alter_column('packages_signoffspecification', 'user_id', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'], null=True)) - - def backwards(self, orm): - db.alter_column('packages_signoffspecification', 'user_id', self.gf('django.db.models.fields.related.ForeignKey')(default=1, to=orm['auth.User'])) - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'main.arch': { - 'Meta': {'ordering': "['name']", 'object_name': 'Arch', 'db_table': "'arches'"}, - 'agnostic': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}) - }, - 'main.package': { - 'Meta': {'ordering': "('pkgname',)", 'object_name': 'Package', 'db_table': "'packages'"}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'packages'", 'to': "orm['main.Arch']"}), - 'build_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'compressed_size': ('main.models.PositiveBigIntegerField', [], {}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'filename': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'files_last_update': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'flag_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'installed_size': ('main.models.PositiveBigIntegerField', [], {}), - 'last_update': ('django.db.models.fields.DateTimeField', [], {}), - 'packager': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True'}), - 'packager_str': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pgp_signature': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgdesc': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}), - 'pkgname': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'packages'", 'to': "orm['main.Repo']"}), - 'url': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}) - }, - 'main.repo': { - 'Meta': {'ordering': "['name']", 'object_name': 'Repo', 'db_table': "'repos'"}, - 'bugs_category': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'bugs_project': ('django.db.models.fields.SmallIntegerField', [], {'default': '1'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'staging': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'svn_root': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'testing': ('django.db.models.fields.BooleanField', [], {'default': 'False'}) - }, - 'packages.conflict': { - 'Meta': {'ordering': "['name']", 'object_name': 'Conflict'}, - 'comparison': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'conflicts'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.license': { - 'Meta': {'ordering': "['name']", 'object_name': 'License'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'licenses'", 'to': "orm['main.Package']"}) - }, - 'packages.packagegroup': { - 'Meta': {'object_name': 'PackageGroup'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'groups'", 'to': "orm['main.Package']"}) - }, - 'packages.packagerelation': { - 'Meta': {'unique_together': "(('pkgbase', 'user', 'type'),)", 'object_name': 'PackageRelation'}, - 'created': ('django.db.models.fields.DateTimeField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'type': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'package_relations'", 'to': "orm['auth.User']"}) - }, - 'packages.provision': { - 'Meta': {'ordering': "['name']", 'object_name': 'Provision'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'provides'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.replacement': { - 'Meta': {'ordering': "['name']", 'object_name': 'Replacement'}, - 'comparison': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'replaces'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.signoff': { - 'Meta': {'object_name': 'Signoff'}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Arch']"}), - 'comments': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'created': ('django.db.models.fields.DateTimeField', [], {}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Repo']"}), - 'revoked': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'package_signoffs'", 'to': "orm['auth.User']"}) - }, - 'packages.signoffspecification': { - 'Meta': {'object_name': 'SignoffSpecification'}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Arch']"}), - 'comments': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'created': ('django.db.models.fields.DateTimeField', [], {}), - 'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'known_bad': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Repo']"}), - 'required': ('django.db.models.fields.PositiveIntegerField', [], {'default': '2'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True'}) - } - } - - complete_apps = ['packages'] diff --git a/packages/migrations/0012_auto__add_flagrequest.py b/packages/migrations/0012_auto__add_flagrequest.py deleted file mode 100644 index a501daff..00000000 --- a/packages/migrations/0012_auto__add_flagrequest.py +++ /dev/null @@ -1,201 +0,0 @@ -# encoding: utf-8 -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - -class Migration(SchemaMigration): - - def forwards(self, orm): - # Adding model 'FlagRequest' - db.create_table('packages_flagrequest', ( - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'], null=True, blank=True)), - ('user_email', self.gf('django.db.models.fields.EmailField')(max_length=75)), - ('created', self.gf('django.db.models.fields.DateTimeField')()), - ('ip_address', self.gf('django.db.models.fields.IPAddressField')(max_length=15)), - ('pkgbase', self.gf('django.db.models.fields.CharField')(max_length=255, db_index=True)), - ('repo', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['main.Repo'])), - ('num_packages', self.gf('django.db.models.fields.PositiveIntegerField')(default=1)), - ('message', self.gf('django.db.models.fields.TextField')(blank=True)), - ('is_spam', self.gf('django.db.models.fields.BooleanField')(default=False)), - ('is_legitimate', self.gf('django.db.models.fields.BooleanField')(default=True)), - )) - db.send_create_signal('packages', ['FlagRequest']) - - if db.backend_name == 'mysql': - # stupid f#$%ing storage of IP address as a 15 character type - db.execute("ALTER TABLE packages_flagrequest " - "MODIFY ip_address char(39) NOT NULL") - - - def backwards(self, orm): - # Deleting model 'FlagRequest' - db.delete_table('packages_flagrequest') - - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'main.arch': { - 'Meta': {'ordering': "['name']", 'object_name': 'Arch', 'db_table': "'arches'"}, - 'agnostic': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}) - }, - 'main.package': { - 'Meta': {'ordering': "('pkgname',)", 'unique_together': "(('pkgname', 'repo', 'arch'),)", 'object_name': 'Package', 'db_table': "'packages'"}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'packages'", 'to': "orm['main.Arch']"}), - 'build_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'compressed_size': ('main.fields.PositiveBigIntegerField', [], {}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'filename': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'files_last_update': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'flag_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'installed_size': ('main.fields.PositiveBigIntegerField', [], {}), - 'last_update': ('django.db.models.fields.DateTimeField', [], {}), - 'packager': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True'}), - 'packager_str': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pgp_signature': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgdesc': ('django.db.models.fields.TextField', [], {'null': 'True'}), - 'pkgname': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'packages'", 'to': "orm['main.Repo']"}), - 'url': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}) - }, - 'main.repo': { - 'Meta': {'ordering': "['name']", 'object_name': 'Repo', 'db_table': "'repos'"}, - 'bugs_category': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'bugs_project': ('django.db.models.fields.SmallIntegerField', [], {'default': '1'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'staging': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'svn_root': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'testing': ('django.db.models.fields.BooleanField', [], {'default': 'False'}) - }, - 'packages.conflict': { - 'Meta': {'ordering': "['name']", 'object_name': 'Conflict'}, - 'comparison': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'conflicts'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.flagrequest': { - 'Meta': {'object_name': 'FlagRequest'}, - 'created': ('django.db.models.fields.DateTimeField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip_address': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}), - 'is_legitimate': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - 'is_spam': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'message': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'num_packages': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Repo']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'}), - 'user_email': ('django.db.models.fields.EmailField', [], {'max_length': '75'}) - }, - 'packages.license': { - 'Meta': {'ordering': "['name']", 'object_name': 'License'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'licenses'", 'to': "orm['main.Package']"}) - }, - 'packages.packagegroup': { - 'Meta': {'object_name': 'PackageGroup'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'groups'", 'to': "orm['main.Package']"}) - }, - 'packages.packagerelation': { - 'Meta': {'unique_together': "(('pkgbase', 'user', 'type'),)", 'object_name': 'PackageRelation'}, - 'created': ('django.db.models.fields.DateTimeField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'type': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'package_relations'", 'to': "orm['auth.User']"}) - }, - 'packages.provision': { - 'Meta': {'ordering': "['name']", 'object_name': 'Provision'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'provides'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.replacement': { - 'Meta': {'ordering': "['name']", 'object_name': 'Replacement'}, - 'comparison': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'replaces'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.signoff': { - 'Meta': {'object_name': 'Signoff'}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Arch']"}), - 'comments': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'created': ('django.db.models.fields.DateTimeField', [], {}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Repo']"}), - 'revoked': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'package_signoffs'", 'to': "orm['auth.User']"}) - }, - 'packages.signoffspecification': { - 'Meta': {'object_name': 'SignoffSpecification'}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Arch']"}), - 'comments': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'created': ('django.db.models.fields.DateTimeField', [], {}), - 'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'known_bad': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Repo']"}), - 'required': ('django.db.models.fields.PositiveIntegerField', [], {'default': '2'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True'}) - } - } - - complete_apps = ['packages'] diff --git a/packages/migrations/0013_auto__add_field_flagrequest_version.py b/packages/migrations/0013_auto__add_field_flagrequest_version.py deleted file mode 100644 index ab33d5b3..00000000 --- a/packages/migrations/0013_auto__add_field_flagrequest_version.py +++ /dev/null @@ -1,180 +0,0 @@ -# encoding: utf-8 -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - -class Migration(SchemaMigration): - - def forwards(self, orm): - db.add_column('packages_flagrequest', 'version', self.gf('django.db.models.fields.CharField')(default='', max_length=255), keep_default=False) - - def backwards(self, orm): - db.delete_column('packages_flagrequest', 'version') - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'main.arch': { - 'Meta': {'ordering': "['name']", 'object_name': 'Arch', 'db_table': "'arches'"}, - 'agnostic': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}) - }, - 'main.package': { - 'Meta': {'ordering': "('pkgname',)", 'unique_together': "(('pkgname', 'repo', 'arch'),)", 'object_name': 'Package', 'db_table': "'packages'"}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'packages'", 'to': "orm['main.Arch']"}), - 'build_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'compressed_size': ('main.fields.PositiveBigIntegerField', [], {}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'filename': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'files_last_update': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'flag_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'installed_size': ('main.fields.PositiveBigIntegerField', [], {}), - 'last_update': ('django.db.models.fields.DateTimeField', [], {}), - 'packager': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True'}), - 'packager_str': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pgp_signature': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgdesc': ('django.db.models.fields.TextField', [], {'null': 'True'}), - 'pkgname': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'packages'", 'to': "orm['main.Repo']"}), - 'url': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}) - }, - 'main.repo': { - 'Meta': {'ordering': "['name']", 'object_name': 'Repo', 'db_table': "'repos'"}, - 'bugs_category': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'bugs_project': ('django.db.models.fields.SmallIntegerField', [], {'default': '1'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'staging': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'svn_root': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'testing': ('django.db.models.fields.BooleanField', [], {'default': 'False'}) - }, - 'packages.conflict': { - 'Meta': {'ordering': "['name']", 'object_name': 'Conflict'}, - 'comparison': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'conflicts'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.flagrequest': { - 'Meta': {'object_name': 'FlagRequest'}, - 'created': ('django.db.models.fields.DateTimeField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip_address': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}), - 'is_legitimate': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - 'is_spam': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'message': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'num_packages': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Repo']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'}), - 'user_email': ('django.db.models.fields.EmailField', [], {'max_length': '75'}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.license': { - 'Meta': {'ordering': "['name']", 'object_name': 'License'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'licenses'", 'to': "orm['main.Package']"}) - }, - 'packages.packagegroup': { - 'Meta': {'object_name': 'PackageGroup'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'groups'", 'to': "orm['main.Package']"}) - }, - 'packages.packagerelation': { - 'Meta': {'unique_together': "(('pkgbase', 'user', 'type'),)", 'object_name': 'PackageRelation'}, - 'created': ('django.db.models.fields.DateTimeField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'type': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'package_relations'", 'to': "orm['auth.User']"}) - }, - 'packages.provision': { - 'Meta': {'ordering': "['name']", 'object_name': 'Provision'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'provides'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.replacement': { - 'Meta': {'ordering': "['name']", 'object_name': 'Replacement'}, - 'comparison': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'replaces'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.signoff': { - 'Meta': {'object_name': 'Signoff'}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Arch']"}), - 'comments': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'created': ('django.db.models.fields.DateTimeField', [], {}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Repo']"}), - 'revoked': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'package_signoffs'", 'to': "orm['auth.User']"}) - }, - 'packages.signoffspecification': { - 'Meta': {'object_name': 'SignoffSpecification'}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Arch']"}), - 'comments': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'created': ('django.db.models.fields.DateTimeField', [], {}), - 'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'known_bad': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Repo']"}), - 'required': ('django.db.models.fields.PositiveIntegerField', [], {'default': '2'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True'}) - } - } - - complete_apps = ['packages'] diff --git a/packages/migrations/0014_auto__chg_field_flagrequest_ip_address.py b/packages/migrations/0014_auto__chg_field_flagrequest_ip_address.py deleted file mode 100644 index 351b9985..00000000 --- a/packages/migrations/0014_auto__chg_field_flagrequest_ip_address.py +++ /dev/null @@ -1,181 +0,0 @@ -# -*- coding: utf-8 -*- -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - - -class Migration(SchemaMigration): - - def forwards(self, orm): - db.alter_column('packages_flagrequest', 'ip_address', self.gf('django.db.models.fields.GenericIPAddressField')(max_length=39)) - - def backwards(self, orm): - db.alter_column('packages_flagrequest', 'ip_address', self.gf('django.db.models.fields.IPAddressField')(max_length=15)) - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'main.arch': { - 'Meta': {'ordering': "['name']", 'object_name': 'Arch', 'db_table': "'arches'"}, - 'agnostic': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}) - }, - 'main.package': { - 'Meta': {'ordering': "('pkgname',)", 'unique_together': "(('pkgname', 'repo', 'arch'),)", 'object_name': 'Package', 'db_table': "'packages'"}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'packages'", 'on_delete': 'models.PROTECT', 'to': "orm['main.Arch']"}), - 'build_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'compressed_size': ('main.fields.PositiveBigIntegerField', [], {}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'filename': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'files_last_update': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'flag_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'installed_size': ('main.fields.PositiveBigIntegerField', [], {}), - 'last_update': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True'}), - 'packager': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'on_delete': 'models.SET_NULL'}), - 'packager_str': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pgp_signature': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgdesc': ('django.db.models.fields.TextField', [], {'null': 'True'}), - 'pkgname': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'packages'", 'on_delete': 'models.PROTECT', 'to': "orm['main.Repo']"}), - 'url': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}) - }, - 'main.repo': { - 'Meta': {'ordering': "['name']", 'object_name': 'Repo', 'db_table': "'repos'"}, - 'bugs_category': ('django.db.models.fields.SmallIntegerField', [], {'default': '2'}), - 'bugs_project': ('django.db.models.fields.SmallIntegerField', [], {'default': '1'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'staging': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'svn_root': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'testing': ('django.db.models.fields.BooleanField', [], {'default': 'False'}) - }, - 'packages.conflict': { - 'Meta': {'ordering': "['name']", 'object_name': 'Conflict'}, - 'comparison': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'conflicts'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.flagrequest': { - 'Meta': {'object_name': 'FlagRequest'}, - 'created': ('django.db.models.fields.DateTimeField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip_address': ('django.db.models.fields.GenericIPAddressField', [], {'max_length': '39'}), - 'is_legitimate': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - 'is_spam': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'message': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'num_packages': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Repo']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'}), - 'user_email': ('django.db.models.fields.EmailField', [], {'max_length': '75'}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.license': { - 'Meta': {'ordering': "['name']", 'object_name': 'License'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'licenses'", 'to': "orm['main.Package']"}) - }, - 'packages.packagegroup': { - 'Meta': {'object_name': 'PackageGroup'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'groups'", 'to': "orm['main.Package']"}) - }, - 'packages.packagerelation': { - 'Meta': {'unique_together': "(('pkgbase', 'user', 'type'),)", 'object_name': 'PackageRelation'}, - 'created': ('django.db.models.fields.DateTimeField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'type': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'package_relations'", 'to': "orm['auth.User']"}) - }, - 'packages.provision': { - 'Meta': {'ordering': "['name']", 'object_name': 'Provision'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'provides'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.replacement': { - 'Meta': {'ordering': "['name']", 'object_name': 'Replacement'}, - 'comparison': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'replaces'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.signoff': { - 'Meta': {'object_name': 'Signoff'}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Arch']"}), - 'comments': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'created': ('django.db.models.fields.DateTimeField', [], {}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Repo']"}), - 'revoked': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'package_signoffs'", 'to': "orm['auth.User']"}) - }, - 'packages.signoffspecification': { - 'Meta': {'object_name': 'SignoffSpecification'}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Arch']"}), - 'comments': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'created': ('django.db.models.fields.DateTimeField', [], {}), - 'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'known_bad': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Repo']"}), - 'required': ('django.db.models.fields.PositiveIntegerField', [], {'default': '2'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True'}) - } - } - - complete_apps = ['packages'] diff --git a/packages/migrations/0015_auto__add_depend.py b/packages/migrations/0015_auto__add_depend.py deleted file mode 100644 index c9685ecb..00000000 --- a/packages/migrations/0015_auto__add_depend.py +++ /dev/null @@ -1,199 +0,0 @@ -# -*- coding: utf-8 -*- -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - - -class Migration(SchemaMigration): - def forwards(self, orm): - db.create_table('packages_depend', ( - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('name', self.gf('django.db.models.fields.CharField')(max_length=255, db_index=True)), - ('version', self.gf('django.db.models.fields.CharField')(default='', max_length=255)), - ('pkg', self.gf('django.db.models.fields.related.ForeignKey')(related_name='depends_new', to=orm['main.Package'])), - ('comparison', self.gf('django.db.models.fields.CharField')(default='', max_length=255)), - ('optional', self.gf('django.db.models.fields.BooleanField')(default=False)), - ('description', self.gf('django.db.models.fields.TextField')(null=True, blank=True)), - )) - db.send_create_signal('packages', ['Depend']) - - def backwards(self, orm): - db.delete_table('packages_depend') - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'main.arch': { - 'Meta': {'ordering': "['name']", 'object_name': 'Arch', 'db_table': "'arches'"}, - 'agnostic': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}) - }, - 'main.package': { - 'Meta': {'ordering': "('pkgname',)", 'unique_together': "(('pkgname', 'repo', 'arch'),)", 'object_name': 'Package', 'db_table': "'packages'"}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'packages'", 'on_delete': 'models.PROTECT', 'to': "orm['main.Arch']"}), - 'build_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'compressed_size': ('main.fields.PositiveBigIntegerField', [], {}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'filename': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'files_last_update': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'flag_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'installed_size': ('main.fields.PositiveBigIntegerField', [], {}), - 'last_update': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True'}), - 'packager': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'on_delete': 'models.SET_NULL'}), - 'packager_str': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pgp_signature': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgdesc': ('django.db.models.fields.TextField', [], {'null': 'True'}), - 'pkgname': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'packages'", 'on_delete': 'models.PROTECT', 'to': "orm['main.Repo']"}), - 'url': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}) - }, - 'main.repo': { - 'Meta': {'ordering': "['name']", 'object_name': 'Repo', 'db_table': "'repos'"}, - 'bugs_category': ('django.db.models.fields.SmallIntegerField', [], {'default': '2'}), - 'bugs_project': ('django.db.models.fields.SmallIntegerField', [], {'default': '1'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'staging': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'svn_root': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'testing': ('django.db.models.fields.BooleanField', [], {'default': 'False'}) - }, - 'packages.conflict': { - 'Meta': {'ordering': "['name']", 'object_name': 'Conflict'}, - 'comparison': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'conflicts'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.depend': { - 'Meta': {'ordering': "['name']", 'object_name': 'Depend'}, - 'comparison': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'optional': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'depends_new'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.flagrequest': { - 'Meta': {'object_name': 'FlagRequest'}, - 'created': ('django.db.models.fields.DateTimeField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip_address': ('django.db.models.fields.GenericIPAddressField', [], {'max_length': '39'}), - 'is_legitimate': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - 'is_spam': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'message': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'num_packages': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Repo']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'}), - 'user_email': ('django.db.models.fields.EmailField', [], {'max_length': '75'}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.license': { - 'Meta': {'ordering': "['name']", 'object_name': 'License'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'licenses'", 'to': "orm['main.Package']"}) - }, - 'packages.packagegroup': { - 'Meta': {'object_name': 'PackageGroup'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'groups'", 'to': "orm['main.Package']"}) - }, - 'packages.packagerelation': { - 'Meta': {'unique_together': "(('pkgbase', 'user', 'type'),)", 'object_name': 'PackageRelation'}, - 'created': ('django.db.models.fields.DateTimeField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'type': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'package_relations'", 'to': "orm['auth.User']"}) - }, - 'packages.provision': { - 'Meta': {'ordering': "['name']", 'object_name': 'Provision'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'provides'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.replacement': { - 'Meta': {'ordering': "['name']", 'object_name': 'Replacement'}, - 'comparison': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'replaces'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.signoff': { - 'Meta': {'object_name': 'Signoff'}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Arch']"}), - 'comments': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'created': ('django.db.models.fields.DateTimeField', [], {}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Repo']"}), - 'revoked': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'package_signoffs'", 'to': "orm['auth.User']"}) - }, - 'packages.signoffspecification': { - 'Meta': {'object_name': 'SignoffSpecification'}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Arch']"}), - 'comments': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'created': ('django.db.models.fields.DateTimeField', [], {}), - 'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'known_bad': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Repo']"}), - 'required': ('django.db.models.fields.PositiveIntegerField', [], {'default': '2'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True'}) - } - } - - complete_apps = ['packages'] diff --git a/packages/migrations/0016_copy_depends_data.py b/packages/migrations/0016_copy_depends_data.py deleted file mode 100644 index a4b55d4e..00000000 --- a/packages/migrations/0016_copy_depends_data.py +++ /dev/null @@ -1,246 +0,0 @@ -# -*- coding: utf-8 -*- -import re -from south.db import db -from south.v2 import DataMigration -from django.db import models - -class Migration(DataMigration): - - depends_on = ( - ('main', '0038_add_depends_optional_description.py'), - ) - - def forwards(self, orm): - Depend = orm['packages.Depend'] - vcmp_re = re.compile(r"^(>=|<=|=|>|<)(.*)$") - for old in orm['main.PackageDepend'].objects.all(): - comp = ver = '' - m = vcmp_re.match(old.depvcmp) - if m: - comp = m.group(1) - ver = m.group(2) - new_dep = Depend(pkg_id=old.pkg_id, name=old.depname, - comparison=comp, version=ver, optional=old.optional, - description=old.description) - new_dep.save(force_insert=True) - - def backwards(self, orm): - orm['packages.Depend'].objects.all().delete() - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'main.arch': { - 'Meta': {'ordering': "['name']", 'object_name': 'Arch', 'db_table': "'arches'"}, - 'agnostic': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}) - }, - 'main.donor': { - 'Meta': {'ordering': "('name',)", 'object_name': 'Donor', 'db_table': "'donors'"}, - 'created': ('django.db.models.fields.DateTimeField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'visible': ('django.db.models.fields.BooleanField', [], {'default': 'True'}) - }, - 'main.package': { - 'Meta': {'ordering': "('pkgname',)", 'unique_together': "(('pkgname', 'repo', 'arch'),)", 'object_name': 'Package', 'db_table': "'packages'"}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'packages'", 'on_delete': 'models.PROTECT', 'to': "orm['main.Arch']"}), - 'build_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'compressed_size': ('main.fields.PositiveBigIntegerField', [], {}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'filename': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'files_last_update': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'flag_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'installed_size': ('main.fields.PositiveBigIntegerField', [], {}), - 'last_update': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True'}), - 'packager': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'on_delete': 'models.SET_NULL'}), - 'packager_str': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pgp_signature': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgdesc': ('django.db.models.fields.TextField', [], {'null': 'True'}), - 'pkgname': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'packages'", 'on_delete': 'models.PROTECT', 'to': "orm['main.Repo']"}), - 'url': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}) - }, - 'main.packagedepend': { - 'Meta': {'object_name': 'PackageDepend', 'db_table': "'package_depends'"}, - 'depname': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'depvcmp': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'optional': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'depends'", 'to': "orm['main.Package']"}) - }, - 'main.packagefile': { - 'Meta': {'object_name': 'PackageFile', 'db_table': "'package_files'"}, - 'directory': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'filename': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_directory': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Package']"}) - }, - 'main.repo': { - 'Meta': {'ordering': "['name']", 'object_name': 'Repo', 'db_table': "'repos'"}, - 'bugs_category': ('django.db.models.fields.SmallIntegerField', [], {'default': '2'}), - 'bugs_project': ('django.db.models.fields.SmallIntegerField', [], {'default': '1'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'staging': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'svn_root': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'testing': ('django.db.models.fields.BooleanField', [], {'default': 'False'}) - }, - 'main.todolist': { - 'Meta': {'object_name': 'Todolist', 'db_table': "'todolists'"}, - 'creator': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'on_delete': 'models.PROTECT'}), - 'date_added': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True'}), - 'description': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}) - }, - 'main.todolistpkg': { - 'Meta': {'unique_together': "(('list', 'pkg'),)", 'object_name': 'TodolistPkg', 'db_table': "'todolist_pkgs'"}, - 'complete': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'list': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Todolist']"}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Package']"}) - }, - 'packages.conflict': { - 'Meta': {'ordering': "['name']", 'object_name': 'Conflict'}, - 'comparison': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'conflicts'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.depend': { - 'Meta': {'ordering': "['name']", 'object_name': 'Depend'}, - 'comparison': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'optional': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'depends_new'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.flagrequest': { - 'Meta': {'object_name': 'FlagRequest'}, - 'created': ('django.db.models.fields.DateTimeField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip_address': ('django.db.models.fields.GenericIPAddressField', [], {'max_length': '39'}), - 'is_legitimate': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - 'is_spam': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'message': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'num_packages': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Repo']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'}), - 'user_email': ('django.db.models.fields.EmailField', [], {'max_length': '75'}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.license': { - 'Meta': {'ordering': "['name']", 'object_name': 'License'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'licenses'", 'to': "orm['main.Package']"}) - }, - 'packages.packagegroup': { - 'Meta': {'object_name': 'PackageGroup'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'groups'", 'to': "orm['main.Package']"}) - }, - 'packages.packagerelation': { - 'Meta': {'unique_together': "(('pkgbase', 'user', 'type'),)", 'object_name': 'PackageRelation'}, - 'created': ('django.db.models.fields.DateTimeField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'type': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'package_relations'", 'to': "orm['auth.User']"}) - }, - 'packages.provision': { - 'Meta': {'ordering': "['name']", 'object_name': 'Provision'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'provides'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.replacement': { - 'Meta': {'ordering': "['name']", 'object_name': 'Replacement'}, - 'comparison': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'replaces'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.signoff': { - 'Meta': {'object_name': 'Signoff'}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Arch']"}), - 'comments': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'created': ('django.db.models.fields.DateTimeField', [], {}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Repo']"}), - 'revoked': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'package_signoffs'", 'to': "orm['auth.User']"}) - }, - 'packages.signoffspecification': { - 'Meta': {'object_name': 'SignoffSpecification'}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Arch']"}), - 'comments': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'created': ('django.db.models.fields.DateTimeField', [], {}), - 'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'known_bad': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Repo']"}), - 'required': ('django.db.models.fields.PositiveIntegerField', [], {'default': '2'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True'}) - } - } - - complete_apps = ['main', 'packages'] - symmetrical = True diff --git a/packages/migrations/0017_auto__add_update.py b/packages/migrations/0017_auto__add_update.py deleted file mode 100644 index c7c16d4e..00000000 --- a/packages/migrations/0017_auto__add_update.py +++ /dev/null @@ -1,226 +0,0 @@ -# -*- coding: utf-8 -*- -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - - -class Migration(SchemaMigration): - - def forwards(self, orm): - db.create_table('packages_update', ( - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('package', self.gf('django.db.models.fields.related.ForeignKey')(related_name='updates', null=True, on_delete=models.SET_NULL, to=orm['main.Package'])), - ('repo', self.gf('django.db.models.fields.related.ForeignKey')(related_name='updates', to=orm['main.Repo'])), - ('arch', self.gf('django.db.models.fields.related.ForeignKey')(related_name='updates', to=orm['main.Arch'])), - ('pkgname', self.gf('django.db.models.fields.CharField')(max_length=255)), - ('pkgbase', self.gf('django.db.models.fields.CharField')(max_length=255)), - ('action_flag', self.gf('django.db.models.fields.PositiveSmallIntegerField')()), - ('created', self.gf('django.db.models.fields.DateTimeField')()), - ('old_pkgver', self.gf('django.db.models.fields.CharField')(max_length=255, null=True)), - ('old_pkgrel', self.gf('django.db.models.fields.CharField')(max_length=255, null=True)), - ('old_epoch', self.gf('django.db.models.fields.PositiveIntegerField')(null=True)), - ('new_pkgver', self.gf('django.db.models.fields.CharField')(max_length=255, null=True)), - ('new_pkgrel', self.gf('django.db.models.fields.CharField')(max_length=255, null=True)), - ('new_epoch', self.gf('django.db.models.fields.PositiveIntegerField')(null=True)), - )) - db.send_create_signal('packages', ['Update']) - - - def backwards(self, orm): - db.delete_table('packages_update') - - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'main.arch': { - 'Meta': {'ordering': "['name']", 'object_name': 'Arch', 'db_table': "'arches'"}, - 'agnostic': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}) - }, - 'main.package': { - 'Meta': {'ordering': "('pkgname',)", 'unique_together': "(('pkgname', 'repo', 'arch'),)", 'object_name': 'Package', 'db_table': "'packages'"}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'packages'", 'on_delete': 'models.PROTECT', 'to': "orm['main.Arch']"}), - 'build_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'compressed_size': ('main.fields.PositiveBigIntegerField', [], {}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'filename': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'files_last_update': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'flag_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'installed_size': ('main.fields.PositiveBigIntegerField', [], {}), - 'last_update': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True'}), - 'packager': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'on_delete': 'models.SET_NULL'}), - 'packager_str': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pgp_signature': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgdesc': ('django.db.models.fields.TextField', [], {'null': 'True'}), - 'pkgname': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'packages'", 'on_delete': 'models.PROTECT', 'to': "orm['main.Repo']"}), - 'url': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}) - }, - 'main.repo': { - 'Meta': {'ordering': "['name']", 'object_name': 'Repo', 'db_table': "'repos'"}, - 'bugs_category': ('django.db.models.fields.SmallIntegerField', [], {'default': '2'}), - 'bugs_project': ('django.db.models.fields.SmallIntegerField', [], {'default': '1'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'staging': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'svn_root': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'testing': ('django.db.models.fields.BooleanField', [], {'default': 'False'}) - }, - 'packages.conflict': { - 'Meta': {'ordering': "['name']", 'object_name': 'Conflict'}, - 'comparison': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'conflicts'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.depend': { - 'Meta': {'ordering': "['name']", 'object_name': 'Depend'}, - 'comparison': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'optional': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'depends'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.flagrequest': { - 'Meta': {'object_name': 'FlagRequest'}, - 'created': ('django.db.models.fields.DateTimeField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip_address': ('django.db.models.fields.GenericIPAddressField', [], {'max_length': '39'}), - 'is_legitimate': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - 'is_spam': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'message': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'num_packages': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Repo']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'}), - 'user_email': ('django.db.models.fields.EmailField', [], {'max_length': '75'}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.license': { - 'Meta': {'ordering': "['name']", 'object_name': 'License'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'licenses'", 'to': "orm['main.Package']"}) - }, - 'packages.packagegroup': { - 'Meta': {'object_name': 'PackageGroup'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'groups'", 'to': "orm['main.Package']"}) - }, - 'packages.packagerelation': { - 'Meta': {'unique_together': "(('pkgbase', 'user', 'type'),)", 'object_name': 'PackageRelation'}, - 'created': ('django.db.models.fields.DateTimeField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'type': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'package_relations'", 'to': "orm['auth.User']"}) - }, - 'packages.provision': { - 'Meta': {'ordering': "['name']", 'object_name': 'Provision'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'provides'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.replacement': { - 'Meta': {'ordering': "['name']", 'object_name': 'Replacement'}, - 'comparison': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'replaces'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.signoff': { - 'Meta': {'object_name': 'Signoff'}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Arch']"}), - 'comments': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'created': ('django.db.models.fields.DateTimeField', [], {}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Repo']"}), - 'revoked': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'package_signoffs'", 'to': "orm['auth.User']"}) - }, - 'packages.signoffspecification': { - 'Meta': {'object_name': 'SignoffSpecification'}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Arch']"}), - 'comments': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'created': ('django.db.models.fields.DateTimeField', [], {}), - 'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'known_bad': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Repo']"}), - 'required': ('django.db.models.fields.PositiveIntegerField', [], {'default': '2'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True'}) - }, - 'packages.update': { - 'Meta': {'object_name': 'Update'}, - 'action_flag': ('django.db.models.fields.PositiveSmallIntegerField', [], {}), - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'updates'", 'to': "orm['main.Arch']"}), - 'created': ('django.db.models.fields.DateTimeField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'new_epoch': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True'}), - 'new_pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}), - 'new_pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}), - 'old_epoch': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True'}), - 'old_pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}), - 'old_pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}), - 'package': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'updates'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['main.Package']"}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgname': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'updates'", 'to': "orm['main.Repo']"}) - } - } - - complete_apps = ['packages'] diff --git a/packages/migrations/0018_create_created_indexes.py b/packages/migrations/0018_create_created_indexes.py deleted file mode 100644 index 678a04d4..00000000 --- a/packages/migrations/0018_create_created_indexes.py +++ /dev/null @@ -1,214 +0,0 @@ -# -*- coding: utf-8 -*- -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - - -class Migration(SchemaMigration): - - def forwards(self, orm): - db.create_index('packages_flagrequest', ['created']) - db.create_index('packages_update', ['created']) - db.create_index('packages_signoff', ['created']) - - - def backwards(self, orm): - db.delete_index('packages_signoff', ['created']) - db.delete_index('packages_update', ['created']) - db.delete_index('packages_flagrequest', ['created']) - - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'main.arch': { - 'Meta': {'ordering': "['name']", 'object_name': 'Arch', 'db_table': "'arches'"}, - 'agnostic': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}) - }, - 'main.package': { - 'Meta': {'ordering': "('pkgname',)", 'unique_together': "(('pkgname', 'repo', 'arch'),)", 'object_name': 'Package', 'db_table': "'packages'"}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'packages'", 'on_delete': 'models.PROTECT', 'to': "orm['main.Arch']"}), - 'build_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'compressed_size': ('main.fields.PositiveBigIntegerField', [], {}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'filename': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'files_last_update': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'flag_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'installed_size': ('main.fields.PositiveBigIntegerField', [], {}), - 'last_update': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True'}), - 'packager': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'on_delete': 'models.SET_NULL'}), - 'packager_str': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pgp_signature': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgdesc': ('django.db.models.fields.TextField', [], {'null': 'True'}), - 'pkgname': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'packages'", 'on_delete': 'models.PROTECT', 'to': "orm['main.Repo']"}), - 'url': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}) - }, - 'main.repo': { - 'Meta': {'ordering': "['name']", 'object_name': 'Repo', 'db_table': "'repos'"}, - 'bugs_category': ('django.db.models.fields.SmallIntegerField', [], {'default': '2'}), - 'bugs_project': ('django.db.models.fields.SmallIntegerField', [], {'default': '1'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'staging': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'svn_root': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'testing': ('django.db.models.fields.BooleanField', [], {'default': 'False'}) - }, - 'packages.conflict': { - 'Meta': {'ordering': "['name']", 'object_name': 'Conflict'}, - 'comparison': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'conflicts'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.depend': { - 'Meta': {'ordering': "['name']", 'object_name': 'Depend'}, - 'comparison': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'optional': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'depends'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.flagrequest': { - 'Meta': {'object_name': 'FlagRequest'}, - 'created': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip_address': ('django.db.models.fields.GenericIPAddressField', [], {'max_length': '39'}), - 'is_legitimate': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - 'is_spam': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'message': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'num_packages': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Repo']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'}), - 'user_email': ('django.db.models.fields.EmailField', [], {'max_length': '75'}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.license': { - 'Meta': {'ordering': "['name']", 'object_name': 'License'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'licenses'", 'to': "orm['main.Package']"}) - }, - 'packages.packagegroup': { - 'Meta': {'object_name': 'PackageGroup'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'groups'", 'to': "orm['main.Package']"}) - }, - 'packages.packagerelation': { - 'Meta': {'unique_together': "(('pkgbase', 'user', 'type'),)", 'object_name': 'PackageRelation'}, - 'created': ('django.db.models.fields.DateTimeField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'type': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'package_relations'", 'to': "orm['auth.User']"}) - }, - 'packages.provision': { - 'Meta': {'ordering': "['name']", 'object_name': 'Provision'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'provides'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.replacement': { - 'Meta': {'ordering': "['name']", 'object_name': 'Replacement'}, - 'comparison': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'replaces'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.signoff': { - 'Meta': {'object_name': 'Signoff'}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Arch']"}), - 'comments': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'created': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True'}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Repo']"}), - 'revoked': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'package_signoffs'", 'to': "orm['auth.User']"}) - }, - 'packages.signoffspecification': { - 'Meta': {'object_name': 'SignoffSpecification'}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Arch']"}), - 'comments': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'created': ('django.db.models.fields.DateTimeField', [], {}), - 'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'known_bad': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Repo']"}), - 'required': ('django.db.models.fields.PositiveIntegerField', [], {'default': '2'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True'}) - }, - 'packages.update': { - 'Meta': {'object_name': 'Update'}, - 'action_flag': ('django.db.models.fields.PositiveSmallIntegerField', [], {}), - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'updates'", 'to': "orm['main.Arch']"}), - 'created': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'new_epoch': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True'}), - 'new_pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}), - 'new_pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}), - 'old_epoch': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True'}), - 'old_pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}), - 'old_pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}), - 'package': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'updates'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['main.Package']"}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgname': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'updates'", 'to': "orm['main.Repo']"}) - } - } - - complete_apps = ['packages'] diff --git a/packages/migrations/0019_package_update_pkgname_index.py b/packages/migrations/0019_package_update_pkgname_index.py deleted file mode 100644 index 047f11ec..00000000 --- a/packages/migrations/0019_package_update_pkgname_index.py +++ /dev/null @@ -1,208 +0,0 @@ -# -*- coding: utf-8 -*- -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - - -class Migration(SchemaMigration): - - def forwards(self, orm): - db.create_index('packages_update', ['pkgname']) - - def backwards(self, orm): - db.delete_index('packages_update', ['pkgname']) - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'main.arch': { - 'Meta': {'ordering': "['name']", 'object_name': 'Arch', 'db_table': "'arches'"}, - 'agnostic': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}) - }, - 'main.package': { - 'Meta': {'ordering': "('pkgname',)", 'unique_together': "(('pkgname', 'repo', 'arch'),)", 'object_name': 'Package', 'db_table': "'packages'"}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'packages'", 'on_delete': 'models.PROTECT', 'to': "orm['main.Arch']"}), - 'build_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'compressed_size': ('main.fields.PositiveBigIntegerField', [], {}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'filename': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'files_last_update': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'flag_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'installed_size': ('main.fields.PositiveBigIntegerField', [], {}), - 'last_update': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True'}), - 'packager': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'on_delete': 'models.SET_NULL'}), - 'packager_str': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pgp_signature': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgdesc': ('django.db.models.fields.TextField', [], {'null': 'True'}), - 'pkgname': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'packages'", 'on_delete': 'models.PROTECT', 'to': "orm['main.Repo']"}), - 'url': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}) - }, - 'main.repo': { - 'Meta': {'ordering': "['name']", 'object_name': 'Repo', 'db_table': "'repos'"}, - 'bugs_category': ('django.db.models.fields.SmallIntegerField', [], {'default': '2'}), - 'bugs_project': ('django.db.models.fields.SmallIntegerField', [], {'default': '1'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'staging': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'svn_root': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'testing': ('django.db.models.fields.BooleanField', [], {'default': 'False'}) - }, - 'packages.conflict': { - 'Meta': {'ordering': "['name']", 'object_name': 'Conflict'}, - 'comparison': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'conflicts'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.depend': { - 'Meta': {'ordering': "['name']", 'object_name': 'Depend'}, - 'comparison': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'optional': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'depends'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.flagrequest': { - 'Meta': {'object_name': 'FlagRequest'}, - 'created': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip_address': ('django.db.models.fields.GenericIPAddressField', [], {'max_length': '39'}), - 'is_legitimate': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - 'is_spam': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'message': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'num_packages': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Repo']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'}), - 'user_email': ('django.db.models.fields.EmailField', [], {'max_length': '75'}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.license': { - 'Meta': {'ordering': "['name']", 'object_name': 'License'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'licenses'", 'to': "orm['main.Package']"}) - }, - 'packages.packagegroup': { - 'Meta': {'object_name': 'PackageGroup'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'groups'", 'to': "orm['main.Package']"}) - }, - 'packages.packagerelation': { - 'Meta': {'unique_together': "(('pkgbase', 'user', 'type'),)", 'object_name': 'PackageRelation'}, - 'created': ('django.db.models.fields.DateTimeField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'type': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'package_relations'", 'to': "orm['auth.User']"}) - }, - 'packages.provision': { - 'Meta': {'ordering': "['name']", 'object_name': 'Provision'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'provides'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.replacement': { - 'Meta': {'ordering': "['name']", 'object_name': 'Replacement'}, - 'comparison': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'replaces'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.signoff': { - 'Meta': {'object_name': 'Signoff'}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Arch']"}), - 'comments': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'created': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True'}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Repo']"}), - 'revoked': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'package_signoffs'", 'to': "orm['auth.User']"}) - }, - 'packages.signoffspecification': { - 'Meta': {'object_name': 'SignoffSpecification'}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Arch']"}), - 'comments': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'created': ('django.db.models.fields.DateTimeField', [], {}), - 'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'known_bad': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Repo']"}), - 'required': ('django.db.models.fields.PositiveIntegerField', [], {'default': '2'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True'}) - }, - 'packages.update': { - 'Meta': {'object_name': 'Update'}, - 'action_flag': ('django.db.models.fields.PositiveSmallIntegerField', [], {}), - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'updates'", 'to': "orm['main.Arch']"}), - 'created': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'new_epoch': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True'}), - 'new_pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}), - 'new_pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}), - 'old_epoch': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True'}), - 'old_pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}), - 'old_pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}), - 'package': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'updates'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['main.Package']"}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgname': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'updates'", 'to': "orm['main.Repo']"}) - } - } - - complete_apps = ['packages'] diff --git a/packages/migrations/0020_auto__add_field_depend_deptype.py b/packages/migrations/0020_auto__add_field_depend_deptype.py deleted file mode 100644 index 4cc5bc17..00000000 --- a/packages/migrations/0020_auto__add_field_depend_deptype.py +++ /dev/null @@ -1,212 +0,0 @@ -# -*- coding: utf-8 -*- -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - - -class Migration(SchemaMigration): - - def forwards(self, orm): - db.add_column('packages_depend', 'deptype', - self.gf('django.db.models.fields.CharField')(default='D', max_length=1), - keep_default=True) - - def backwards(self, orm): - db.delete_column('packages_depend', 'deptype') - - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'main.arch': { - 'Meta': {'ordering': "['name']", 'object_name': 'Arch', 'db_table': "'arches'"}, - 'agnostic': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}) - }, - 'main.package': { - 'Meta': {'ordering': "('pkgname',)", 'unique_together': "(('pkgname', 'repo', 'arch'),)", 'object_name': 'Package', 'db_table': "'packages'"}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'packages'", 'on_delete': 'models.PROTECT', 'to': "orm['main.Arch']"}), - 'build_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'compressed_size': ('main.fields.PositiveBigIntegerField', [], {}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'filename': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'files_last_update': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'flag_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'installed_size': ('main.fields.PositiveBigIntegerField', [], {}), - 'last_update': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True'}), - 'packager': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'on_delete': 'models.SET_NULL'}), - 'packager_str': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pgp_signature': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgdesc': ('django.db.models.fields.TextField', [], {'null': 'True'}), - 'pkgname': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'packages'", 'on_delete': 'models.PROTECT', 'to': "orm['main.Repo']"}), - 'url': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}) - }, - 'main.repo': { - 'Meta': {'ordering': "['name']", 'object_name': 'Repo', 'db_table': "'repos'"}, - 'bugs_category': ('django.db.models.fields.SmallIntegerField', [], {'default': '2'}), - 'bugs_project': ('django.db.models.fields.SmallIntegerField', [], {'default': '1'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'staging': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'svn_root': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'testing': ('django.db.models.fields.BooleanField', [], {'default': 'False'}) - }, - 'packages.conflict': { - 'Meta': {'ordering': "['name']", 'object_name': 'Conflict'}, - 'comparison': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'conflicts'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.depend': { - 'Meta': {'ordering': "['name']", 'object_name': 'Depend'}, - 'comparison': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'deptype': ('django.db.models.fields.CharField', [], {'default': "'D'", 'max_length': '1'}), - 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'optional': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'depends'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.flagrequest': { - 'Meta': {'object_name': 'FlagRequest'}, - 'created': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip_address': ('django.db.models.fields.GenericIPAddressField', [], {'max_length': '39'}), - 'is_legitimate': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - 'is_spam': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'message': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'num_packages': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Repo']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'}), - 'user_email': ('django.db.models.fields.EmailField', [], {'max_length': '75'}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.license': { - 'Meta': {'ordering': "['name']", 'object_name': 'License'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'licenses'", 'to': "orm['main.Package']"}) - }, - 'packages.packagegroup': { - 'Meta': {'object_name': 'PackageGroup'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'groups'", 'to': "orm['main.Package']"}) - }, - 'packages.packagerelation': { - 'Meta': {'unique_together': "(('pkgbase', 'user', 'type'),)", 'object_name': 'PackageRelation'}, - 'created': ('django.db.models.fields.DateTimeField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'type': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'package_relations'", 'to': "orm['auth.User']"}) - }, - 'packages.provision': { - 'Meta': {'ordering': "['name']", 'object_name': 'Provision'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'provides'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.replacement': { - 'Meta': {'ordering': "['name']", 'object_name': 'Replacement'}, - 'comparison': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'replaces'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.signoff': { - 'Meta': {'object_name': 'Signoff'}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Arch']"}), - 'comments': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'created': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True'}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Repo']"}), - 'revoked': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'package_signoffs'", 'to': "orm['auth.User']"}) - }, - 'packages.signoffspecification': { - 'Meta': {'object_name': 'SignoffSpecification'}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Arch']"}), - 'comments': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'created': ('django.db.models.fields.DateTimeField', [], {}), - 'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'known_bad': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Repo']"}), - 'required': ('django.db.models.fields.PositiveIntegerField', [], {'default': '2'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True'}) - }, - 'packages.update': { - 'Meta': {'object_name': 'Update'}, - 'action_flag': ('django.db.models.fields.PositiveSmallIntegerField', [], {}), - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'updates'", 'to': "orm['main.Arch']"}), - 'created': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'new_epoch': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True'}), - 'new_pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}), - 'new_pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}), - 'old_epoch': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True'}), - 'old_pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}), - 'old_pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}), - 'package': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'updates'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['main.Package']"}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgname': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'updates'", 'to': "orm['main.Repo']"}) - } - } - - complete_apps = ['packages'] diff --git a/packages/migrations/0021_migrate_optional_deps.py b/packages/migrations/0021_migrate_optional_deps.py deleted file mode 100644 index f6652ce1..00000000 --- a/packages/migrations/0021_migrate_optional_deps.py +++ /dev/null @@ -1,210 +0,0 @@ -# -*- coding: utf-8 -*- -from south.db import db -from south.v2 import DataMigration -from django.db import models - -class Migration(DataMigration): - - def forwards(self, orm): - orm['packages.Depend'].objects.filter(optional=False).update(deptype='D') - orm['packages.Depend'].objects.filter(optional=True).update(deptype='O') - - def backwards(self, orm): - orm['packages.Depend'].objects.all().update(deptype='D') - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'main.arch': { - 'Meta': {'ordering': "['name']", 'object_name': 'Arch', 'db_table': "'arches'"}, - 'agnostic': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}) - }, - 'main.package': { - 'Meta': {'ordering': "('pkgname',)", 'unique_together': "(('pkgname', 'repo', 'arch'),)", 'object_name': 'Package', 'db_table': "'packages'"}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'packages'", 'on_delete': 'models.PROTECT', 'to': "orm['main.Arch']"}), - 'build_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'compressed_size': ('main.fields.PositiveBigIntegerField', [], {}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'filename': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'files_last_update': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'flag_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'installed_size': ('main.fields.PositiveBigIntegerField', [], {}), - 'last_update': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True'}), - 'packager': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'on_delete': 'models.SET_NULL'}), - 'packager_str': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pgp_signature': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgdesc': ('django.db.models.fields.TextField', [], {'null': 'True'}), - 'pkgname': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'packages'", 'on_delete': 'models.PROTECT', 'to': "orm['main.Repo']"}), - 'url': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}) - }, - 'main.repo': { - 'Meta': {'ordering': "['name']", 'object_name': 'Repo', 'db_table': "'repos'"}, - 'bugs_category': ('django.db.models.fields.SmallIntegerField', [], {'default': '2'}), - 'bugs_project': ('django.db.models.fields.SmallIntegerField', [], {'default': '1'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'staging': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'svn_root': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'testing': ('django.db.models.fields.BooleanField', [], {'default': 'False'}) - }, - 'packages.conflict': { - 'Meta': {'ordering': "['name']", 'object_name': 'Conflict'}, - 'comparison': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'conflicts'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.depend': { - 'Meta': {'ordering': "['name']", 'object_name': 'Depend'}, - 'comparison': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'deptype': ('django.db.models.fields.CharField', [], {'default': "'D'", 'max_length': '1'}), - 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'optional': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'depends'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.flagrequest': { - 'Meta': {'object_name': 'FlagRequest'}, - 'created': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip_address': ('django.db.models.fields.GenericIPAddressField', [], {'max_length': '39'}), - 'is_legitimate': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - 'is_spam': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'message': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'num_packages': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Repo']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'}), - 'user_email': ('django.db.models.fields.EmailField', [], {'max_length': '75'}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.license': { - 'Meta': {'ordering': "['name']", 'object_name': 'License'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'licenses'", 'to': "orm['main.Package']"}) - }, - 'packages.packagegroup': { - 'Meta': {'object_name': 'PackageGroup'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'groups'", 'to': "orm['main.Package']"}) - }, - 'packages.packagerelation': { - 'Meta': {'unique_together': "(('pkgbase', 'user', 'type'),)", 'object_name': 'PackageRelation'}, - 'created': ('django.db.models.fields.DateTimeField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'type': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'package_relations'", 'to': "orm['auth.User']"}) - }, - 'packages.provision': { - 'Meta': {'ordering': "['name']", 'object_name': 'Provision'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'provides'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.replacement': { - 'Meta': {'ordering': "['name']", 'object_name': 'Replacement'}, - 'comparison': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'replaces'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.signoff': { - 'Meta': {'object_name': 'Signoff'}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Arch']"}), - 'comments': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'created': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True'}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Repo']"}), - 'revoked': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'package_signoffs'", 'to': "orm['auth.User']"}) - }, - 'packages.signoffspecification': { - 'Meta': {'object_name': 'SignoffSpecification'}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Arch']"}), - 'comments': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'created': ('django.db.models.fields.DateTimeField', [], {}), - 'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'known_bad': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Repo']"}), - 'required': ('django.db.models.fields.PositiveIntegerField', [], {'default': '2'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True'}) - }, - 'packages.update': { - 'Meta': {'object_name': 'Update'}, - 'action_flag': ('django.db.models.fields.PositiveSmallIntegerField', [], {}), - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'updates'", 'to': "orm['main.Arch']"}), - 'created': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'new_epoch': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True'}), - 'new_pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}), - 'new_pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}), - 'old_epoch': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True'}), - 'old_pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}), - 'old_pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}), - 'package': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'updates'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['main.Package']"}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgname': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'updates'", 'to': "orm['main.Repo']"}) - } - } - - complete_apps = ['packages'] - symmetrical = True diff --git a/packages/migrations/0022_auto__del_field_depend_optional.py b/packages/migrations/0022_auto__del_field_depend_optional.py deleted file mode 100644 index 8e65ccb1..00000000 --- a/packages/migrations/0022_auto__del_field_depend_optional.py +++ /dev/null @@ -1,211 +0,0 @@ -# -*- coding: utf-8 -*- -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - - -class Migration(SchemaMigration): - - def forwards(self, orm): - db.delete_column('packages_depend', 'optional') - - def backwards(self, orm): - db.add_column('packages_depend', 'optional', - self.gf('django.db.models.fields.BooleanField')(default=False), - keep_default=False) - - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'main.arch': { - 'Meta': {'ordering': "['name']", 'object_name': 'Arch', 'db_table': "'arches'"}, - 'agnostic': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}) - }, - 'main.package': { - 'Meta': {'ordering': "('pkgname',)", 'unique_together': "(('pkgname', 'repo', 'arch'),)", 'object_name': 'Package', 'db_table': "'packages'"}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'packages'", 'on_delete': 'models.PROTECT', 'to': "orm['main.Arch']"}), - 'build_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'compressed_size': ('main.fields.PositiveBigIntegerField', [], {}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'filename': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'files_last_update': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'flag_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'installed_size': ('main.fields.PositiveBigIntegerField', [], {}), - 'last_update': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True'}), - 'packager': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'on_delete': 'models.SET_NULL'}), - 'packager_str': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pgp_signature': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgdesc': ('django.db.models.fields.TextField', [], {'null': 'True'}), - 'pkgname': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'packages'", 'on_delete': 'models.PROTECT', 'to': "orm['main.Repo']"}), - 'url': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}) - }, - 'main.repo': { - 'Meta': {'ordering': "['name']", 'object_name': 'Repo', 'db_table': "'repos'"}, - 'bugs_category': ('django.db.models.fields.SmallIntegerField', [], {'default': '2'}), - 'bugs_project': ('django.db.models.fields.SmallIntegerField', [], {'default': '1'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'staging': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'svn_root': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'testing': ('django.db.models.fields.BooleanField', [], {'default': 'False'}) - }, - 'packages.conflict': { - 'Meta': {'ordering': "['name']", 'object_name': 'Conflict'}, - 'comparison': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'conflicts'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.depend': { - 'Meta': {'ordering': "['name']", 'object_name': 'Depend'}, - 'comparison': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'deptype': ('django.db.models.fields.CharField', [], {'default': "'D'", 'max_length': '1'}), - 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'depends'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.flagrequest': { - 'Meta': {'object_name': 'FlagRequest'}, - 'created': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip_address': ('django.db.models.fields.GenericIPAddressField', [], {'max_length': '39'}), - 'is_legitimate': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - 'is_spam': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'message': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'num_packages': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Repo']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'}), - 'user_email': ('django.db.models.fields.EmailField', [], {'max_length': '75'}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.license': { - 'Meta': {'ordering': "['name']", 'object_name': 'License'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'licenses'", 'to': "orm['main.Package']"}) - }, - 'packages.packagegroup': { - 'Meta': {'object_name': 'PackageGroup'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'groups'", 'to': "orm['main.Package']"}) - }, - 'packages.packagerelation': { - 'Meta': {'unique_together': "(('pkgbase', 'user', 'type'),)", 'object_name': 'PackageRelation'}, - 'created': ('django.db.models.fields.DateTimeField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'type': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'package_relations'", 'to': "orm['auth.User']"}) - }, - 'packages.provision': { - 'Meta': {'ordering': "['name']", 'object_name': 'Provision'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'provides'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.replacement': { - 'Meta': {'ordering': "['name']", 'object_name': 'Replacement'}, - 'comparison': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'replaces'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.signoff': { - 'Meta': {'object_name': 'Signoff'}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Arch']"}), - 'comments': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'created': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True'}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Repo']"}), - 'revoked': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'package_signoffs'", 'to': "orm['auth.User']"}) - }, - 'packages.signoffspecification': { - 'Meta': {'object_name': 'SignoffSpecification'}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Arch']"}), - 'comments': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'created': ('django.db.models.fields.DateTimeField', [], {}), - 'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'known_bad': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Repo']"}), - 'required': ('django.db.models.fields.PositiveIntegerField', [], {'default': '2'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True'}) - }, - 'packages.update': { - 'Meta': {'object_name': 'Update'}, - 'action_flag': ('django.db.models.fields.PositiveSmallIntegerField', [], {}), - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'updates'", 'to': "orm['main.Arch']"}), - 'created': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'new_epoch': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True'}), - 'new_pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}), - 'new_pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}), - 'old_epoch': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True'}), - 'old_pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}), - 'old_pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}), - 'package': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'updates'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['main.Package']"}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgname': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'updates'", 'to': "orm['main.Repo']"}) - } - } - - complete_apps = ['packages'] diff --git a/packages/migrations/0023_split_flag_req_version_field.py b/packages/migrations/0023_split_flag_req_version_field.py deleted file mode 100644 index b3d6c05c..00000000 --- a/packages/migrations/0023_split_flag_req_version_field.py +++ /dev/null @@ -1,222 +0,0 @@ -# -*- coding: utf-8 -*- -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - - -class Migration(SchemaMigration): - - def forwards(self, orm): - db.add_column('packages_flagrequest', 'pkgver', - self.gf('django.db.models.fields.CharField')(default='', max_length=255), - keep_default=False) - db.add_column('packages_flagrequest', 'pkgrel', - self.gf('django.db.models.fields.CharField')(default='', max_length=255), - keep_default=False) - db.add_column('packages_flagrequest', 'epoch', - self.gf('django.db.models.fields.PositiveIntegerField')(default=0), - keep_default=True) - - def backwards(self, orm): - db.delete_column('packages_flagrequest', 'pkgver') - db.delete_column('packages_flagrequest', 'pkgrel') - db.delete_column('packages_flagrequest', 'epoch') - - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'main.arch': { - 'Meta': {'ordering': "['name']", 'object_name': 'Arch', 'db_table': "'arches'"}, - 'agnostic': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}) - }, - 'main.package': { - 'Meta': {'ordering': "('pkgname',)", 'unique_together': "(('pkgname', 'repo', 'arch'),)", 'object_name': 'Package', 'db_table': "'packages'"}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'packages'", 'on_delete': 'models.PROTECT', 'to': "orm['main.Arch']"}), - 'build_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'compressed_size': ('main.fields.PositiveBigIntegerField', [], {}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'filename': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'files_last_update': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'flag_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'installed_size': ('main.fields.PositiveBigIntegerField', [], {}), - 'last_update': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True'}), - 'packager': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'on_delete': 'models.SET_NULL'}), - 'packager_str': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pgp_signature': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgdesc': ('django.db.models.fields.TextField', [], {'null': 'True'}), - 'pkgname': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'packages'", 'on_delete': 'models.PROTECT', 'to': "orm['main.Repo']"}), - 'url': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}) - }, - 'main.repo': { - 'Meta': {'ordering': "['name']", 'object_name': 'Repo', 'db_table': "'repos'"}, - 'bugs_category': ('django.db.models.fields.SmallIntegerField', [], {'default': '2'}), - 'bugs_project': ('django.db.models.fields.SmallIntegerField', [], {'default': '1'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'staging': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'svn_root': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'testing': ('django.db.models.fields.BooleanField', [], {'default': 'False'}) - }, - 'packages.conflict': { - 'Meta': {'ordering': "['name']", 'object_name': 'Conflict'}, - 'comparison': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'conflicts'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.depend': { - 'Meta': {'ordering': "['name']", 'object_name': 'Depend'}, - 'comparison': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'deptype': ('django.db.models.fields.CharField', [], {'default': "'D'", 'max_length': '1'}), - 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'depends'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.flagrequest': { - 'Meta': {'object_name': 'FlagRequest'}, - 'created': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True'}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip_address': ('django.db.models.fields.GenericIPAddressField', [], {'max_length': '39'}), - 'is_legitimate': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - 'is_spam': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'message': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'num_packages': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Repo']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'}), - 'user_email': ('django.db.models.fields.EmailField', [], {'max_length': '75'}), - 'version': ('django.db.models.fields.CharField', [], {'max_length': '255'}) - }, - 'packages.license': { - 'Meta': {'ordering': "['name']", 'object_name': 'License'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'licenses'", 'to': "orm['main.Package']"}) - }, - 'packages.packagegroup': { - 'Meta': {'object_name': 'PackageGroup'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'groups'", 'to': "orm['main.Package']"}) - }, - 'packages.packagerelation': { - 'Meta': {'unique_together': "(('pkgbase', 'user', 'type'),)", 'object_name': 'PackageRelation'}, - 'created': ('django.db.models.fields.DateTimeField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'type': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'package_relations'", 'to': "orm['auth.User']"}) - }, - 'packages.provision': { - 'Meta': {'ordering': "['name']", 'object_name': 'Provision'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'provides'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.replacement': { - 'Meta': {'ordering': "['name']", 'object_name': 'Replacement'}, - 'comparison': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'replaces'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.signoff': { - 'Meta': {'object_name': 'Signoff'}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Arch']"}), - 'comments': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'created': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True'}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Repo']"}), - 'revoked': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'package_signoffs'", 'to': "orm['auth.User']"}) - }, - 'packages.signoffspecification': { - 'Meta': {'object_name': 'SignoffSpecification'}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Arch']"}), - 'comments': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'created': ('django.db.models.fields.DateTimeField', [], {}), - 'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'known_bad': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Repo']"}), - 'required': ('django.db.models.fields.PositiveIntegerField', [], {'default': '2'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True'}) - }, - 'packages.update': { - 'Meta': {'object_name': 'Update'}, - 'action_flag': ('django.db.models.fields.PositiveSmallIntegerField', [], {}), - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'updates'", 'to': "orm['main.Arch']"}), - 'created': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'new_epoch': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True'}), - 'new_pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}), - 'new_pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}), - 'old_epoch': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True'}), - 'old_pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}), - 'old_pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}), - 'package': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'updates'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['main.Package']"}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgname': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'updates'", 'to': "orm['main.Repo']"}) - } - } - - complete_apps = ['packages'] diff --git a/packages/migrations/0024_move_flag_req_version_info.py b/packages/migrations/0024_move_flag_req_version_info.py deleted file mode 100644 index 3be4654a..00000000 --- a/packages/migrations/0024_move_flag_req_version_info.py +++ /dev/null @@ -1,218 +0,0 @@ -# -*- coding: utf-8 -*- -from south.db import db -from south.v2 import DataMigration -from django.db import models - -from packages.utils import parse_version - - -class Migration(DataMigration): - - def forwards(self, orm): - for pk, version in orm.FlagRequest.objects.exclude( - version='').values_list('pk', 'version'): - ver, rel, epoch = parse_version(version) - orm.FlagRequest.objects.filter(pk=pk).update( - pkgver=ver, pkgrel=rel, epoch=epoch) - - def backwards(self, orm): - orm.FlagRequest.objects.all().update(pkgver='', pkgrel='', epoch=0) - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'main.arch': { - 'Meta': {'ordering': "['name']", 'object_name': 'Arch', 'db_table': "'arches'"}, - 'agnostic': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}) - }, - 'main.package': { - 'Meta': {'ordering': "('pkgname',)", 'unique_together': "(('pkgname', 'repo', 'arch'),)", 'object_name': 'Package', 'db_table': "'packages'"}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'packages'", 'on_delete': 'models.PROTECT', 'to': "orm['main.Arch']"}), - 'build_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'compressed_size': ('main.fields.PositiveBigIntegerField', [], {}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'filename': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'files_last_update': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'flag_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'installed_size': ('main.fields.PositiveBigIntegerField', [], {}), - 'last_update': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True'}), - 'packager': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'on_delete': 'models.SET_NULL'}), - 'packager_str': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pgp_signature': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgdesc': ('django.db.models.fields.TextField', [], {'null': 'True'}), - 'pkgname': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'packages'", 'on_delete': 'models.PROTECT', 'to': "orm['main.Repo']"}), - 'url': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}) - }, - 'main.repo': { - 'Meta': {'ordering': "['name']", 'object_name': 'Repo', 'db_table': "'repos'"}, - 'bugs_category': ('django.db.models.fields.SmallIntegerField', [], {'default': '2'}), - 'bugs_project': ('django.db.models.fields.SmallIntegerField', [], {'default': '1'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'staging': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'svn_root': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'testing': ('django.db.models.fields.BooleanField', [], {'default': 'False'}) - }, - 'packages.conflict': { - 'Meta': {'ordering': "['name']", 'object_name': 'Conflict'}, - 'comparison': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'conflicts'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.depend': { - 'Meta': {'ordering': "['name']", 'object_name': 'Depend'}, - 'comparison': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'deptype': ('django.db.models.fields.CharField', [], {'default': "'D'", 'max_length': '1'}), - 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'depends'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.flagrequest': { - 'Meta': {'object_name': 'FlagRequest'}, - 'created': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True'}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip_address': ('django.db.models.fields.GenericIPAddressField', [], {'max_length': '39'}), - 'is_legitimate': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - 'is_spam': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'message': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'num_packages': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Repo']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'}), - 'user_email': ('django.db.models.fields.EmailField', [], {'max_length': '75'}), - 'version': ('django.db.models.fields.CharField', [], {'max_length': '255'}) - }, - 'packages.license': { - 'Meta': {'ordering': "['name']", 'object_name': 'License'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'licenses'", 'to': "orm['main.Package']"}) - }, - 'packages.packagegroup': { - 'Meta': {'object_name': 'PackageGroup'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'groups'", 'to': "orm['main.Package']"}) - }, - 'packages.packagerelation': { - 'Meta': {'unique_together': "(('pkgbase', 'user', 'type'),)", 'object_name': 'PackageRelation'}, - 'created': ('django.db.models.fields.DateTimeField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'type': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'package_relations'", 'to': "orm['auth.User']"}) - }, - 'packages.provision': { - 'Meta': {'ordering': "['name']", 'object_name': 'Provision'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'provides'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.replacement': { - 'Meta': {'ordering': "['name']", 'object_name': 'Replacement'}, - 'comparison': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'replaces'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.signoff': { - 'Meta': {'object_name': 'Signoff'}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Arch']"}), - 'comments': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'created': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True'}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Repo']"}), - 'revoked': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'package_signoffs'", 'to': "orm['auth.User']"}) - }, - 'packages.signoffspecification': { - 'Meta': {'object_name': 'SignoffSpecification'}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Arch']"}), - 'comments': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'created': ('django.db.models.fields.DateTimeField', [], {}), - 'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'known_bad': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Repo']"}), - 'required': ('django.db.models.fields.PositiveIntegerField', [], {'default': '2'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True'}) - }, - 'packages.update': { - 'Meta': {'object_name': 'Update'}, - 'action_flag': ('django.db.models.fields.PositiveSmallIntegerField', [], {}), - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'updates'", 'to': "orm['main.Arch']"}), - 'created': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'new_epoch': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True'}), - 'new_pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}), - 'new_pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}), - 'old_epoch': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True'}), - 'old_pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}), - 'old_pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}), - 'package': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'updates'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['main.Package']"}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgname': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'updates'", 'to': "orm['main.Repo']"}) - } - } - - complete_apps = ['packages'] - symmetrical = True diff --git a/packages/migrations/0025_auto__del_field_flagrequest_version.py b/packages/migrations/0025_auto__del_field_flagrequest_version.py deleted file mode 100644 index 963b0b12..00000000 --- a/packages/migrations/0025_auto__del_field_flagrequest_version.py +++ /dev/null @@ -1,213 +0,0 @@ -# -*- coding: utf-8 -*- -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - - -class Migration(SchemaMigration): - - def forwards(self, orm): - db.delete_column('packages_flagrequest', 'version') - - def backwards(self, orm): - db.add_column('packages_flagrequest', 'version', - self.gf('django.db.models.fields.CharField')(default='', max_length=255), - keep_default=False) - - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'main.arch': { - 'Meta': {'ordering': "['name']", 'object_name': 'Arch', 'db_table': "'arches'"}, - 'agnostic': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}) - }, - 'main.package': { - 'Meta': {'ordering': "('pkgname',)", 'unique_together': "(('pkgname', 'repo', 'arch'),)", 'object_name': 'Package', 'db_table': "'packages'"}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'packages'", 'on_delete': 'models.PROTECT', 'to': "orm['main.Arch']"}), - 'build_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'compressed_size': ('main.fields.PositiveBigIntegerField', [], {}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'filename': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'files_last_update': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'flag_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'installed_size': ('main.fields.PositiveBigIntegerField', [], {}), - 'last_update': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True'}), - 'packager': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'on_delete': 'models.SET_NULL'}), - 'packager_str': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pgp_signature': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgdesc': ('django.db.models.fields.TextField', [], {'null': 'True'}), - 'pkgname': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'packages'", 'on_delete': 'models.PROTECT', 'to': "orm['main.Repo']"}), - 'url': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}) - }, - 'main.repo': { - 'Meta': {'ordering': "['name']", 'object_name': 'Repo', 'db_table': "'repos'"}, - 'bugs_category': ('django.db.models.fields.SmallIntegerField', [], {'default': '2'}), - 'bugs_project': ('django.db.models.fields.SmallIntegerField', [], {'default': '1'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'staging': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'svn_root': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'testing': ('django.db.models.fields.BooleanField', [], {'default': 'False'}) - }, - 'packages.conflict': { - 'Meta': {'ordering': "['name']", 'object_name': 'Conflict'}, - 'comparison': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'conflicts'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.depend': { - 'Meta': {'ordering': "['name']", 'object_name': 'Depend'}, - 'comparison': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'deptype': ('django.db.models.fields.CharField', [], {'default': "'D'", 'max_length': '1'}), - 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'depends'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.flagrequest': { - 'Meta': {'object_name': 'FlagRequest'}, - 'created': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True'}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip_address': ('django.db.models.fields.GenericIPAddressField', [], {'max_length': '39'}), - 'is_legitimate': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - 'is_spam': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'message': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'num_packages': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Repo']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'}), - 'user_email': ('django.db.models.fields.EmailField', [], {'max_length': '75'}) - }, - 'packages.license': { - 'Meta': {'ordering': "['name']", 'object_name': 'License'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'licenses'", 'to': "orm['main.Package']"}) - }, - 'packages.packagegroup': { - 'Meta': {'object_name': 'PackageGroup'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'groups'", 'to': "orm['main.Package']"}) - }, - 'packages.packagerelation': { - 'Meta': {'unique_together': "(('pkgbase', 'user', 'type'),)", 'object_name': 'PackageRelation'}, - 'created': ('django.db.models.fields.DateTimeField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'type': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'package_relations'", 'to': "orm['auth.User']"}) - }, - 'packages.provision': { - 'Meta': {'ordering': "['name']", 'object_name': 'Provision'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'provides'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.replacement': { - 'Meta': {'ordering': "['name']", 'object_name': 'Replacement'}, - 'comparison': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkg': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'replaces'", 'to': "orm['main.Package']"}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}) - }, - 'packages.signoff': { - 'Meta': {'object_name': 'Signoff'}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Arch']"}), - 'comments': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'created': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True'}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Repo']"}), - 'revoked': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'package_signoffs'", 'to': "orm['auth.User']"}) - }, - 'packages.signoffspecification': { - 'Meta': {'object_name': 'SignoffSpecification'}, - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Arch']"}), - 'comments': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), - 'created': ('django.db.models.fields.DateTimeField', [], {}), - 'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - 'epoch': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'known_bad': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['main.Repo']"}), - 'required': ('django.db.models.fields.PositiveIntegerField', [], {'default': '2'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True'}) - }, - 'packages.update': { - 'Meta': {'object_name': 'Update'}, - 'action_flag': ('django.db.models.fields.PositiveSmallIntegerField', [], {}), - 'arch': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'updates'", 'to': "orm['main.Arch']"}), - 'created': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'new_epoch': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True'}), - 'new_pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}), - 'new_pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}), - 'old_epoch': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True'}), - 'old_pkgrel': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}), - 'old_pkgver': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}), - 'package': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'updates'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['main.Package']"}), - 'pkgbase': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pkgname': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), - 'repo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'updates'", 'to': "orm['main.Repo']"}) - } - } - - complete_apps = ['packages'] -- cgit v1.2.3-54-g00ecf From 0896b5697a09e1da532e9e42bbc4b2da2dd2d856 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sat, 28 Jun 2014 12:06:54 -0500 Subject: Add auto-generated migrations from new Django migrations framework Signed-off-by: Dan McGee --- devel/migrations/0001_initial.py | 101 +++++++++++++++++ main/migrations/0001_initial.py | 119 ++++++++++++++++++++ mirrors/migrations/0001_initial.py | 123 +++++++++++++++++++++ news/migrations/0001_initial.py | 37 +++++++ packages/migrations/0001_initial.py | 205 +++++++++++++++++++++++++++++++++++ releng/migrations/0001_initial.py | 185 +++++++++++++++++++++++++++++++ todolists/migrations/0001_initial.py | 61 +++++++++++ 7 files changed, 831 insertions(+) create mode 100644 devel/migrations/0001_initial.py create mode 100644 main/migrations/0001_initial.py create mode 100644 mirrors/migrations/0001_initial.py create mode 100644 news/migrations/0001_initial.py create mode 100644 packages/migrations/0001_initial.py create mode 100644 releng/migrations/0001_initial.py create mode 100644 todolists/migrations/0001_initial.py (limited to 'packages/migrations') diff --git a/devel/migrations/0001_initial.py b/devel/migrations/0001_initial.py new file mode 100644 index 00000000..3dd3582b --- /dev/null +++ b/devel/migrations/0001_initial.py @@ -0,0 +1,101 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals +import pytz + +from django.db import models, migrations +import django_countries.fields +import django.db.models.deletion +from django.conf import settings +import devel.fields + + +class Migration(migrations.Migration): + + dependencies = [ + ('main', '0001_initial'), + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ] + + operations = [ + migrations.CreateModel( + name='DeveloperKey', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('key', devel.fields.PGPKeyField(unique=True, max_length=40, verbose_name=b'PGP key fingerprint')), + ('created', models.DateTimeField()), + ('expires', models.DateTimeField(null=True, blank=True)), + ('revoked', models.DateTimeField(null=True, blank=True)), + ('owner', models.ForeignKey(related_name=b'all_keys', to=settings.AUTH_USER_MODEL, help_text=b'The developer this key belongs to', null=True)), + ('parent', models.ForeignKey(on_delete=django.db.models.deletion.SET_NULL, to='devel.DeveloperKey', null=True)), + ], + options={ + }, + bases=(models.Model,), + ), + migrations.CreateModel( + name='MasterKey', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('pgp_key', devel.fields.PGPKeyField(help_text=b'consists of 40 hex digits; use `gpg --fingerprint`', max_length=40, verbose_name=b'PGP key fingerprint')), + ('created', models.DateField()), + ('revoked', models.DateField(null=True, blank=True)), + ('owner', models.ForeignKey(related_name=b'masterkey_owner', to=settings.AUTH_USER_MODEL, help_text=b'The developer holding this master key')), + ('revoker', models.ForeignKey(related_name=b'masterkey_revoker', to=settings.AUTH_USER_MODEL, help_text=b'The developer holding the revocation certificate')), + ], + options={ + 'ordering': ('created',), + 'get_latest_by': 'created', + }, + bases=(models.Model,), + ), + migrations.CreateModel( + name='PGPSignature', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('signer', devel.fields.PGPKeyField(max_length=40, verbose_name=b'Signer key fingerprint', db_index=True)), + ('signee', devel.fields.PGPKeyField(max_length=40, verbose_name=b'Signee key fingerprint', db_index=True)), + ('created', models.DateField()), + ('expires', models.DateField(null=True, blank=True)), + ('revoked', models.DateField(null=True, blank=True)), + ], + options={ + 'ordering': ('signer', 'signee'), + 'get_latest_by': 'created', + 'verbose_name': 'PGP signature', + }, + bases=(models.Model,), + ), + migrations.CreateModel( + name='UserProfile', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('notify', models.BooleanField(default=True, help_text=b"When enabled, send user 'flag out-of-date' notifications", verbose_name=b'Send notifications')), + ('time_zone', models.CharField(default=b'UTC', help_text=b'Used for developer clock page', max_length=100, choices=[(z, z) for z in pytz.common_timezones])), + ('alias', models.CharField(help_text=b'Required field', max_length=50)), + ('public_email', models.CharField(help_text=b'Required field', max_length=50)), + ('other_contact', models.CharField(max_length=100, null=True, blank=True)), + ('pgp_key', devel.fields.PGPKeyField(help_text=b'consists of 40 hex digits; use `gpg --fingerprint`', max_length=40, null=True, verbose_name=b'PGP key fingerprint', blank=True)), + ('website', models.CharField(max_length=200, null=True, blank=True)), + ('yob', models.IntegerField(null=True, verbose_name=b'Year of birth', blank=True)), + ('country', django_countries.fields.CountryField(blank=True, max_length=2)), + ('location', models.CharField(max_length=50, null=True, blank=True)), + ('languages', models.CharField(max_length=50, null=True, blank=True)), + ('interests', models.CharField(max_length=255, null=True, blank=True)), + ('occupation', models.CharField(max_length=50, null=True, blank=True)), + ('roles', models.CharField(max_length=255, null=True, blank=True)), + ('favorite_distros', models.CharField(max_length=255, null=True, blank=True)), + ('picture', models.FileField(default=b'devs/silhouette.png', help_text=b'Ideally 125px by 125px', upload_to=b'devs')), + ('latin_name', models.CharField(help_text=b'Latin-form name; used only for non-Latin full names', max_length=255, null=True, blank=True)), + ('last_modified', models.DateTimeField(editable=False)), + ('allowed_repos', models.ManyToManyField(to='main.Repo', blank=True)), + ('user', models.OneToOneField(related_name=b'userprofile', to=settings.AUTH_USER_MODEL)), + ], + options={ + 'get_latest_by': 'last_modified', + 'verbose_name': 'additional profile data', + 'verbose_name_plural': 'additional profile data', + 'db_table': 'user_profiles', + }, + bases=(models.Model,), + ), + ] diff --git a/main/migrations/0001_initial.py b/main/migrations/0001_initial.py new file mode 100644 index 00000000..8349d4b9 --- /dev/null +++ b/main/migrations/0001_initial.py @@ -0,0 +1,119 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations +import main.fields +import django.db.models.deletion +from django.conf import settings + + +class Migration(migrations.Migration): + + dependencies = [ + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ] + + operations = [ + migrations.CreateModel( + name='Arch', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('name', models.CharField(unique=True, max_length=255)), + ('agnostic', models.BooleanField(default=False, help_text=b'Is this architecture non-platform specific?')), + ('required_signoffs', models.PositiveIntegerField(default=2, help_text=b'Number of signoffs required for packages of this architecture')), + ], + options={ + 'ordering': ('name',), + 'db_table': 'arches', + 'verbose_name_plural': 'arches', + }, + bases=(models.Model,), + ), + migrations.CreateModel( + name='Donor', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('name', models.CharField(unique=True, max_length=255)), + ('visible', models.BooleanField(default=True, help_text=b'Should we show this donor on the public page?')), + ('created', models.DateTimeField()), + ], + options={ + 'ordering': ('name',), + 'db_table': 'donors', + 'get_latest_by': 'created', + }, + bases=(models.Model,), + ), + migrations.CreateModel( + name='Package', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('pkgname', models.CharField(max_length=255)), + ('pkgbase', models.CharField(max_length=255, db_index=True)), + ('pkgver', models.CharField(max_length=255)), + ('pkgrel', models.CharField(max_length=255)), + ('epoch', models.PositiveIntegerField(default=0)), + ('pkgdesc', models.TextField(null=True, verbose_name=b'description')), + ('url', models.CharField(max_length=255, null=True, verbose_name=b'URL')), + ('filename', models.CharField(max_length=255)), + ('compressed_size', main.fields.PositiveBigIntegerField()), + ('installed_size', main.fields.PositiveBigIntegerField()), + ('build_date', models.DateTimeField(null=True)), + ('last_update', models.DateTimeField(db_index=True)), + ('files_last_update', models.DateTimeField(null=True, blank=True)), + ('created', models.DateTimeField()), + ('packager_str', models.CharField(max_length=255, verbose_name=b'packager string')), + ('signature_bytes', models.BinaryField(verbose_name=b'PGP signature', null=True)), + ('flag_date', models.DateTimeField(null=True, blank=True)), + ('arch', models.ForeignKey(related_name=b'packages', on_delete=django.db.models.deletion.PROTECT, to='main.Arch')), + ('packager', models.ForeignKey(on_delete=django.db.models.deletion.SET_NULL, blank=True, to=settings.AUTH_USER_MODEL, null=True)), + ], + options={ + 'ordering': ('pkgname',), + 'db_table': 'packages', + 'get_latest_by': 'last_update', + }, + bases=(models.Model,), + ), + migrations.CreateModel( + name='PackageFile', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('is_directory', models.BooleanField(default=False)), + ('directory', models.CharField(max_length=1024)), + ('filename', models.CharField(max_length=1024, null=True, blank=True)), + ('pkg', models.ForeignKey(to='main.Package')), + ], + options={ + 'db_table': 'package_files', + }, + bases=(models.Model,), + ), + migrations.CreateModel( + name='Repo', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('name', models.CharField(unique=True, max_length=255)), + ('testing', models.BooleanField(default=False, help_text=b'Is this repo meant for package testing?')), + ('staging', models.BooleanField(default=False, help_text=b'Is this repo meant for package staging?')), + ('bugs_project', models.SmallIntegerField(default=1, help_text=b'Flyspray project ID for this repository.')), + ('bugs_category', models.SmallIntegerField(default=2, help_text=b'Flyspray category ID for this repository.')), + ('svn_root', models.CharField(help_text=b'SVN root (e.g. path) for this repository.', max_length=64)), + ], + options={ + 'ordering': ('name',), + 'db_table': 'repos', + }, + bases=(models.Model,), + ), + migrations.AddField( + model_name='package', + name='repo', + field=models.ForeignKey(related_name=b'packages', on_delete=django.db.models.deletion.PROTECT, to='main.Repo'), + preserve_default=True, + ), + migrations.AlterUniqueTogether( + name='package', + unique_together=set([('pkgname', 'repo', 'arch')]), + ), + ] diff --git a/mirrors/migrations/0001_initial.py b/mirrors/migrations/0001_initial.py new file mode 100644 index 00000000..6f36c9eb --- /dev/null +++ b/mirrors/migrations/0001_initial.py @@ -0,0 +1,123 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations +import django_countries.fields +import django.db.models.deletion +import mirrors.fields + + +class Migration(migrations.Migration): + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='CheckLocation', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('hostname', models.CharField(max_length=255)), + ('source_ip', models.GenericIPAddressField(unique=True, verbose_name=b'source IP', unpack_ipv4=True)), + ('country', django_countries.fields.CountryField(max_length=2)), + ('created', models.DateTimeField(editable=False)), + ], + options={ + 'ordering': ('hostname', 'source_ip'), + }, + bases=(models.Model,), + ), + migrations.CreateModel( + name='Mirror', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('name', models.CharField(unique=True, max_length=255)), + ('tier', models.SmallIntegerField(default=2, choices=[(0, b'Tier 0'), (1, b'Tier 1'), (2, b'Tier 2'), (-1, b'Untiered')])), + ('admin_email', models.EmailField(max_length=255, blank=True)), + ('alternate_email', models.EmailField(max_length=255, blank=True)), + ('public', models.BooleanField(default=True)), + ('active', models.BooleanField(default=True)), + ('isos', models.BooleanField(default=True, verbose_name=b'ISOs')), + ('rsync_user', models.CharField(default=b'', max_length=50, blank=True)), + ('rsync_password', models.CharField(default=b'', max_length=50, blank=True)), + ('bug', models.PositiveIntegerField(null=True, verbose_name=b'Flyspray bug', blank=True)), + ('notes', models.TextField(blank=True)), + ('created', models.DateTimeField(editable=False)), + ('last_modified', models.DateTimeField(editable=False)), + ('upstream', models.ForeignKey(on_delete=django.db.models.deletion.SET_NULL, to='mirrors.Mirror', null=True)), + ], + options={ + 'ordering': ('name',), + }, + bases=(models.Model,), + ), + migrations.CreateModel( + name='MirrorLog', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('check_time', models.DateTimeField(db_index=True)), + ('last_sync', models.DateTimeField(null=True)), + ('duration', models.FloatField(null=True)), + ('is_success', models.BooleanField(default=True)), + ('error', models.TextField(default=b'', blank=True)), + ('location', models.ForeignKey(related_name=b'logs', to='mirrors.CheckLocation', null=True)), + ], + options={ + 'get_latest_by': 'check_time', + 'verbose_name': 'mirror check log', + }, + bases=(models.Model,), + ), + migrations.CreateModel( + name='MirrorProtocol', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('protocol', models.CharField(unique=True, max_length=10)), + ('is_download', models.BooleanField(default=True, help_text=b'Is protocol useful for end-users, e.g. HTTP')), + ('default', models.BooleanField(default=True, help_text=b'Included by default when building mirror list?')), + ('created', models.DateTimeField(editable=False)), + ], + options={ + 'ordering': ('protocol',), + }, + bases=(models.Model,), + ), + migrations.CreateModel( + name='MirrorRsync', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('ip', mirrors.fields.IPNetworkField(max_length=44, verbose_name=b'IP')), + ('created', models.DateTimeField(editable=False)), + ('mirror', models.ForeignKey(related_name=b'rsync_ips', to='mirrors.Mirror')), + ], + options={ + 'ordering': ('ip',), + 'verbose_name': 'mirror rsync IP', + }, + bases=(models.Model,), + ), + migrations.CreateModel( + name='MirrorUrl', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('url', models.CharField(unique=True, max_length=255, verbose_name=b'URL')), + ('country', django_countries.fields.CountryField(blank=True, max_length=2, db_index=True)), + ('has_ipv4', models.BooleanField(default=True, verbose_name=b'IPv4 capable', editable=False)), + ('has_ipv6', models.BooleanField(default=False, verbose_name=b'IPv6 capable', editable=False)), + ('created', models.DateTimeField(editable=False)), + ('active', models.BooleanField(default=True)), + ('mirror', models.ForeignKey(related_name=b'urls', to='mirrors.Mirror')), + ('protocol', models.ForeignKey(related_name=b'urls', on_delete=django.db.models.deletion.PROTECT, editable=False, to='mirrors.MirrorProtocol')), + ], + options={ + 'verbose_name': 'mirror URL', + }, + bases=(models.Model,), + ), + migrations.AddField( + model_name='mirrorlog', + name='url', + field=models.ForeignKey(related_name=b'logs', to='mirrors.MirrorUrl'), + preserve_default=True, + ), + ] diff --git a/news/migrations/0001_initial.py b/news/migrations/0001_initial.py new file mode 100644 index 00000000..fc6b6cfb --- /dev/null +++ b/news/migrations/0001_initial.py @@ -0,0 +1,37 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations +import django.db.models.deletion +from django.conf import settings + + +class Migration(migrations.Migration): + + dependencies = [ + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ] + + operations = [ + migrations.CreateModel( + name='News', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('slug', models.SlugField(unique=True, max_length=255)), + ('postdate', models.DateTimeField(verbose_name=b'post date', db_index=True)), + ('last_modified', models.DateTimeField(editable=False, db_index=True)), + ('title', models.CharField(max_length=255)), + ('guid', models.CharField(max_length=255, editable=False)), + ('content', models.TextField()), + ('safe_mode', models.BooleanField(default=True)), + ('author', models.ForeignKey(related_name=b'news_author', on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL)), + ], + options={ + 'ordering': ('-postdate',), + 'db_table': 'news', + 'verbose_name_plural': 'news', + 'get_latest_by': 'postdate', + }, + bases=(models.Model,), + ), + ] diff --git a/packages/migrations/0001_initial.py b/packages/migrations/0001_initial.py new file mode 100644 index 00000000..5ecac84a --- /dev/null +++ b/packages/migrations/0001_initial.py @@ -0,0 +1,205 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations +import django.db.models.deletion +from django.conf import settings + + +class Migration(migrations.Migration): + + dependencies = [ + ('main', '0001_initial'), + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ] + + operations = [ + migrations.CreateModel( + name='Conflict', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('name', models.CharField(max_length=255, db_index=True)), + ('version', models.CharField(default=b'', max_length=255)), + ('comparison', models.CharField(default=b'', max_length=255)), + ('pkg', models.ForeignKey(related_name=b'conflicts', to='main.Package')), + ], + options={ + 'ordering': ('name',), + 'abstract': False, + }, + bases=(models.Model,), + ), + migrations.CreateModel( + name='Depend', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('name', models.CharField(max_length=255, db_index=True)), + ('version', models.CharField(default=b'', max_length=255)), + ('comparison', models.CharField(default=b'', max_length=255)), + ('description', models.TextField(null=True, blank=True)), + ('deptype', models.CharField(default=b'D', max_length=1, choices=[(b'D', b'Depend'), (b'O', b'Optional Depend'), (b'M', b'Make Depend'), (b'C', b'Check Depend')])), + ('pkg', models.ForeignKey(related_name=b'depends', to='main.Package')), + ], + options={ + 'ordering': ('name',), + 'abstract': False, + }, + bases=(models.Model,), + ), + migrations.CreateModel( + name='FlagRequest', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('user_email', models.EmailField(max_length=75, verbose_name=b'email address')), + ('created', models.DateTimeField(editable=False, db_index=True)), + ('ip_address', models.GenericIPAddressField(verbose_name=b'IP address', unpack_ipv4=True)), + ('pkgbase', models.CharField(max_length=255, db_index=True)), + ('pkgver', models.CharField(max_length=255)), + ('pkgrel', models.CharField(max_length=255)), + ('epoch', models.PositiveIntegerField(default=0)), + ('num_packages', models.PositiveIntegerField(default=1, verbose_name=b'number of packages')), + ('message', models.TextField(verbose_name=b'message to developer', blank=True)), + ('is_spam', models.BooleanField(default=False, help_text=b'Is this comment from a real person?')), + ('is_legitimate', models.BooleanField(default=True, help_text=b'Is this actually an out-of-date flag request?')), + ('repo', models.ForeignKey(to='main.Repo')), + ('user', models.ForeignKey(blank=True, to=settings.AUTH_USER_MODEL, null=True)), + ], + options={ + 'get_latest_by': 'created', + }, + bases=(models.Model,), + ), + migrations.CreateModel( + name='License', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('name', models.CharField(max_length=255)), + ('pkg', models.ForeignKey(related_name=b'licenses', to='main.Package')), + ], + options={ + 'ordering': ('name',), + }, + bases=(models.Model,), + ), + migrations.CreateModel( + name='PackageGroup', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('name', models.CharField(max_length=255, db_index=True)), + ('pkg', models.ForeignKey(related_name=b'groups', to='main.Package')), + ], + options={ + 'ordering': ('name',), + }, + bases=(models.Model,), + ), + migrations.CreateModel( + name='PackageRelation', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('pkgbase', models.CharField(max_length=255)), + ('type', models.PositiveIntegerField(default=1, choices=[(1, b'Maintainer'), (2, b'Watcher')])), + ('created', models.DateTimeField(editable=False)), + ('user', models.ForeignKey(related_name=b'package_relations', to=settings.AUTH_USER_MODEL)), + ], + options={ + }, + bases=(models.Model,), + ), + migrations.CreateModel( + name='Provision', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('name', models.CharField(max_length=255, db_index=True)), + ('version', models.CharField(default=b'', max_length=255)), + ('pkg', models.ForeignKey(related_name=b'provides', to='main.Package')), + ], + options={ + 'ordering': ('name',), + 'abstract': False, + }, + bases=(models.Model,), + ), + migrations.CreateModel( + name='Replacement', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('name', models.CharField(max_length=255, db_index=True)), + ('version', models.CharField(default=b'', max_length=255)), + ('comparison', models.CharField(default=b'', max_length=255)), + ('pkg', models.ForeignKey(related_name=b'replaces', to='main.Package')), + ], + options={ + 'ordering': ('name',), + 'abstract': False, + }, + bases=(models.Model,), + ), + migrations.CreateModel( + name='Signoff', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('pkgbase', models.CharField(max_length=255, db_index=True)), + ('pkgver', models.CharField(max_length=255)), + ('pkgrel', models.CharField(max_length=255)), + ('epoch', models.PositiveIntegerField(default=0)), + ('created', models.DateTimeField(editable=False, db_index=True)), + ('revoked', models.DateTimeField(null=True)), + ('comments', models.TextField(null=True, blank=True)), + ('arch', models.ForeignKey(to='main.Arch')), + ('repo', models.ForeignKey(to='main.Repo')), + ('user', models.ForeignKey(related_name=b'package_signoffs', to=settings.AUTH_USER_MODEL)), + ], + options={ + }, + bases=(models.Model,), + ), + migrations.CreateModel( + name='SignoffSpecification', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('pkgbase', models.CharField(max_length=255, db_index=True)), + ('pkgver', models.CharField(max_length=255)), + ('pkgrel', models.CharField(max_length=255)), + ('epoch', models.PositiveIntegerField(default=0)), + ('created', models.DateTimeField(editable=False)), + ('required', models.PositiveIntegerField(default=2, help_text=b'How many signoffs are required for this package?')), + ('enabled', models.BooleanField(default=True, help_text=b'Is this package eligible for signoffs?')), + ('known_bad', models.BooleanField(default=False, help_text=b'Is package is known to be broken in some way?')), + ('comments', models.TextField(null=True, blank=True)), + ('arch', models.ForeignKey(to='main.Arch')), + ('repo', models.ForeignKey(to='main.Repo')), + ('user', models.ForeignKey(to=settings.AUTH_USER_MODEL, null=True)), + ], + options={ + }, + bases=(models.Model,), + ), + migrations.CreateModel( + name='Update', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('pkgname', models.CharField(max_length=255, db_index=True)), + ('pkgbase', models.CharField(max_length=255)), + ('action_flag', models.PositiveSmallIntegerField(verbose_name=b'action flag', choices=[(1, b'Addition'), (2, b'Change'), (3, b'Deletion')])), + ('created', models.DateTimeField(editable=False, db_index=True)), + ('old_pkgver', models.CharField(max_length=255, null=True)), + ('old_pkgrel', models.CharField(max_length=255, null=True)), + ('old_epoch', models.PositiveIntegerField(null=True)), + ('new_pkgver', models.CharField(max_length=255, null=True)), + ('new_pkgrel', models.CharField(max_length=255, null=True)), + ('new_epoch', models.PositiveIntegerField(null=True)), + ('arch', models.ForeignKey(related_name=b'updates', to='main.Arch')), + ('package', models.ForeignKey(related_name=b'updates', on_delete=django.db.models.deletion.SET_NULL, to='main.Package', null=True)), + ('repo', models.ForeignKey(related_name=b'updates', to='main.Repo')), + ], + options={ + 'get_latest_by': 'created', + }, + bases=(models.Model,), + ), + migrations.AlterUniqueTogether( + name='packagerelation', + unique_together=set([('pkgbase', 'user', 'type')]), + ), + ] diff --git a/releng/migrations/0001_initial.py b/releng/migrations/0001_initial.py new file mode 100644 index 00000000..b56f389d --- /dev/null +++ b/releng/migrations/0001_initial.py @@ -0,0 +1,185 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='Architecture', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('name', models.CharField(max_length=200)), + ], + options={ + 'abstract': False, + }, + bases=(models.Model,), + ), + migrations.CreateModel( + name='Bootloader', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('name', models.CharField(max_length=200)), + ], + options={ + 'abstract': False, + }, + bases=(models.Model,), + ), + migrations.CreateModel( + name='BootType', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('name', models.CharField(max_length=200)), + ], + options={ + 'abstract': False, + }, + bases=(models.Model,), + ), + migrations.CreateModel( + name='ClockChoice', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('name', models.CharField(max_length=200)), + ], + options={ + 'abstract': False, + }, + bases=(models.Model,), + ), + migrations.CreateModel( + name='Filesystem', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('name', models.CharField(max_length=200)), + ], + options={ + 'abstract': False, + }, + bases=(models.Model,), + ), + migrations.CreateModel( + name='HardwareType', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('name', models.CharField(max_length=200)), + ], + options={ + 'abstract': False, + }, + bases=(models.Model,), + ), + migrations.CreateModel( + name='InstallType', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('name', models.CharField(max_length=200)), + ], + options={ + 'abstract': False, + }, + bases=(models.Model,), + ), + migrations.CreateModel( + name='Iso', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('name', models.CharField(max_length=255)), + ('created', models.DateTimeField(editable=False)), + ('removed', models.DateTimeField(default=None, null=True, blank=True)), + ('active', models.BooleanField(default=True)), + ], + options={ + 'verbose_name': 'ISO', + }, + bases=(models.Model,), + ), + migrations.CreateModel( + name='IsoType', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('name', models.CharField(max_length=200)), + ], + options={ + 'verbose_name': 'ISO type', + }, + bases=(models.Model,), + ), + migrations.CreateModel( + name='Module', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('name', models.CharField(max_length=200)), + ], + options={ + 'abstract': False, + }, + bases=(models.Model,), + ), + migrations.CreateModel( + name='Release', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('release_date', models.DateField(db_index=True)), + ('version', models.CharField(unique=True, max_length=50)), + ('kernel_version', models.CharField(max_length=50, blank=True)), + ('md5_sum', models.CharField(max_length=32, verbose_name=b'MD5 digest', blank=True)), + ('sha1_sum', models.CharField(max_length=40, verbose_name=b'SHA1 digest', blank=True)), + ('created', models.DateTimeField(editable=False)), + ('available', models.BooleanField(default=True)), + ('info', models.TextField(verbose_name=b'Public information', blank=True)), + ('torrent_data', models.TextField(help_text=b'base64-encoded torrent file', blank=True)), + ], + options={ + 'ordering': ('-release_date', '-version'), + 'get_latest_by': 'release_date', + }, + bases=(models.Model,), + ), + migrations.CreateModel( + name='Source', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('name', models.CharField(max_length=200)), + ], + options={ + 'abstract': False, + }, + bases=(models.Model,), + ), + migrations.CreateModel( + name='Test', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('user_name', models.CharField(max_length=500)), + ('user_email', models.EmailField(max_length=75, verbose_name=b'email address')), + ('ip_address', models.GenericIPAddressField(verbose_name=b'IP address', unpack_ipv4=True)), + ('created', models.DateTimeField(editable=False)), + ('success', models.BooleanField(default=True)), + ('comments', models.TextField(null=True, blank=True)), + ('architecture', models.ForeignKey(to='releng.Architecture')), + ('boot_type', models.ForeignKey(to='releng.BootType')), + ('bootloader', models.ForeignKey(to='releng.Bootloader')), + ('clock_choice', models.ForeignKey(to='releng.ClockChoice')), + ('filesystem', models.ForeignKey(to='releng.Filesystem')), + ('hardware_type', models.ForeignKey(to='releng.HardwareType')), + ('install_type', models.ForeignKey(to='releng.InstallType')), + ('iso', models.ForeignKey(to='releng.Iso')), + ('iso_type', models.ForeignKey(to='releng.IsoType')), + ('modules', models.ManyToManyField(to='releng.Module', null=True, blank=True)), + ('rollback_filesystem', models.ForeignKey(related_name=b'rollback_test_set', blank=True, to='releng.Filesystem', null=True)), + ('rollback_modules', models.ManyToManyField(related_name=b'rollback_test_set', null=True, to='releng.Module', blank=True)), + ('source', models.ForeignKey(to='releng.Source')), + ], + options={ + }, + bases=(models.Model,), + ), + ] diff --git a/todolists/migrations/0001_initial.py b/todolists/migrations/0001_initial.py new file mode 100644 index 00000000..4ffbf838 --- /dev/null +++ b/todolists/migrations/0001_initial.py @@ -0,0 +1,61 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations +import django.db.models.deletion +from django.conf import settings + + +class Migration(migrations.Migration): + + dependencies = [ + ('main', '0001_initial'), + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ] + + operations = [ + migrations.CreateModel( + name='Todolist', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('slug', models.SlugField(unique=True, max_length=255)), + ('old_id', models.IntegerField(unique=True, null=True)), + ('name', models.CharField(max_length=255)), + ('description', models.TextField()), + ('created', models.DateTimeField(db_index=True)), + ('last_modified', models.DateTimeField(editable=False)), + ('raw', models.TextField(blank=True)), + ('creator', models.ForeignKey(related_name=b'created_todolists', on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL)), + ], + options={ + 'get_latest_by': 'created', + }, + bases=(models.Model,), + ), + migrations.CreateModel( + name='TodolistPackage', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('pkgname', models.CharField(max_length=255)), + ('pkgbase', models.CharField(max_length=255)), + ('created', models.DateTimeField(editable=False)), + ('last_modified', models.DateTimeField(editable=False)), + ('removed', models.DateTimeField(null=True, blank=True)), + ('status', models.SmallIntegerField(default=0, choices=[(0, b'Incomplete'), (1, b'Complete'), (2, b'In-progress')])), + ('comments', models.TextField(null=True, blank=True)), + ('arch', models.ForeignKey(to='main.Arch')), + ('pkg', models.ForeignKey(on_delete=django.db.models.deletion.SET_NULL, to='main.Package', null=True)), + ('repo', models.ForeignKey(to='main.Repo')), + ('todolist', models.ForeignKey(to='todolists.Todolist')), + ('user', models.ForeignKey(on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL, null=True)), + ], + options={ + 'get_latest_by': 'created', + }, + bases=(models.Model,), + ), + migrations.AlterUniqueTogether( + name='todolistpackage', + unique_together=set([('todolist', 'pkgname', 'arch')]), + ), + ] -- cgit v1.2.3-54-g00ecf