1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
(archweb-env)inglor@tiamat ~/workspace/archweb$ ./manage.py migrate                                                             ‚ú≠master 
Running migrations for main:
 - Migrating forwards to 0061_auto__del_packagedepend.
 > packages:0001_initial
 > main:0001_initial
 > main:0002_make_maintainer_nullable
 > main:0003_migrate_maintainer
 - Migration 'main:0003_migrate_maintainer' is marked for no-dry-run.
 > packages:0002_populate_package_relation
 - Migration 'packages:0002_populate_package_relation' is marked for no-dry-run.
 > packages:0003_auto__add_packagegroup
 > packages:0004_auto__add_license
 > main:0004_add_pkgname_index
 > main:0005_fix_empty_url_pkgdesc
 - Migration 'main:0005_fix_empty_url_pkgdesc' is marked for no-dry-run.
 > main:0006_add_more_info_to_packages
 > main:0007_add_files_last_update
 > main:0008_mirror_tiering
 > main:0009_mirror_rsync_credentials
 > main:0010_kill_rsync_ip_hostname
 > main:0011_mirror_notes_text_field
 > main:0012_is_repo_testing
 > main:0013_mark_repos_testing
 - Migration 'main:0013_mark_repos_testing' is marked for no-dry-run.
 > main:0014_mirror_notes_rsync_optional
 > main:0015_auto__del_field_package_maintainer
 > main:0016_always_fill_pkgbase
 - Migration 'main:0016_always_fill_pkgbase' is marked for no-dry-run.
 > main:0017_auto__chg_field_package_pkgbase
 > main:0018_auto__del_press
 > main:0019_auto__del_altforum
 > main:0020_auto__del_externalproject
 > main:0021_mark_package_fields_nullable
 > main:0022_auto__add_field_package_filename
 > main:0023_auto__add_field_package_flag_date
 > main:0024_set_initial_flag_date
 - Migration 'main:0024_set_initial_flag_date' is marked for no-dry-run.
/home/inglor/workspace/archweb-env/lib/python2.7/site-packages/django/db/models/fields/__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2012-09-26 23:31:53.349548) while time zone support is active.
  RuntimeWarning)
 > main:0025_auto__del_field_package_needupdate
 > main:0026_auto__add_field_package_packager_str__add_field_package_packager
 > packages:0005_move_license_data
 - Migration 'packages:0005_move_license_data' is marked for no-dry-run.
 > packages:0006_auto__add_provision__add_conflict__add_replacement
 > packages:0007_auto__add_field_packagerelation_created
 > packages:0008_add_signoff_model
 > packages:0009_add_packagegroup_name_index
 > packages:0010_auto__add_signoffspecification
 > packages:0011_auto__chg_field_signoffspecification_user
 > packages:0012_auto__add_flagrequest
 > packages:0013_auto__add_field_flagrequest_version
 > packages:0014_auto__chg_field_flagrequest_ip_address
 > packages:0015_auto__add_depend
 > main:0027_auto__chg_field_package_compressed_size__chg_field_package_installed_s
 > main:0028_auto__add_field_repo_bugs_project__add_field_repo_svn_root
 > main:0029_fill_in_repo_data
 - Migration 'main:0029_fill_in_repo_data' is marked for no-dry-run.
 > main:0030_move_mirror_models
 > main:0031_move_news_out
 > main:0032_auto__add_field_arch_agnostic
 > main:0033_mark_any_agnostic
 - Migration 'main:0033_mark_any_agnostic' is marked for no-dry-run.
 > main:0034_update_content_type
 - Migration 'main:0034_update_content_type' is marked for no-dry-run.
 > main:0035_auto__add_field_donor_visible
 > main:0036_auto__chg_field_userprofile_user
 > main:0037_auto__add_field_userprofile_time_zone
 > main:0038_add_depends_optional_description
 > packages:0016_copy_depends_data
 - Migration 'packages:0016_copy_depends_data' is marked for no-dry-run.
 > main:0039_auto__del_field_package_license
 > main:0040_split_package_files
 > main:0041_move_package_files_data
 - Migration 'main:0041_move_package_files_data' is marked for no-dry-run.
 > main:0042_auto__del_field_packagefile_path
 > main:0043_auto__add_field_package_epoch
 > main:0044_auto__chg_field_todolist_date_added
 > main:0045_add_todolist_date_added_index
 > main:0046_auto__add_field_repo_staging
 > main:0047_utc_datetimes
 - Migration 'main:0047_utc_datetimes' is marked for no-dry-run.
 > main:0048_auto__add_field_repo_bugs_category
 > main:0049_auto__add_field_userprofile_pgp_key
 > main:0050_auto__chg_field_package_compressed_size__chg_field_package_installed_s
 > main:0051_auto__chg_field_userprofile_pgp_key
 > main:0052_auto__del_signoff
 > main:0053_auto__add_field_package_pgp_signature
 > main:0054_auto__add_field_donor_created
 > main:0055_unique_package_in_repo
FATAL ERROR - The following SQL query failed: DROP INDEX "packages_cab2cbcf"
The error was: no such index: packages_cab2cbcf
 ! Error found during real run of migration! Aborting.

 ! Since you have a database that does not support running
 ! schema-altering statements in transactions, we have had 
 ! to leave it in an interim state between migrations.

! You *might* be able to recover with:   = CREATE INDEX "packages_cab2cbcf" ON "packages" ("pkgname"); []

 ! The South developers regret this has happened, and would
 ! like to gently persuade you to consider a slightly
 ! easier-to-deal-with DBMS (one that supports DDL transactions)
 ! NOTE: The error which caused the migration to fail is further up.
Error in migration: main:0055_unique_package_in_repo
Traceback (most recent call last):
  File "./manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/home/inglor/workspace/archweb-env/lib/python2.7/site-packages/django/core/management/__init__.py", line 443, in execute_from_command_line
    utility.execute()
  File "/home/inglor/workspace/archweb-env/lib/python2.7/site-packages/django/core/management/__init__.py", line 382, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/inglor/workspace/archweb-env/lib/python2.7/site-packages/django/core/management/base.py", line 196, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/home/inglor/workspace/archweb-env/lib/python2.7/site-packages/django/core/management/base.py", line 232, in execute
    output = self.handle(*args, **options)
  File "/home/inglor/workspace/archweb-env/lib/python2.7/site-packages/south/management/commands/migrate.py", line 108, in handle
    ignore_ghosts = ignore_ghosts,
  File "/home/inglor/workspace/archweb-env/lib/python2.7/site-packages/south/migration/__init__.py", line 213, in migrate_app
    success = migrator.migrate_many(target, workplan, database)
  File "/home/inglor/workspace/archweb-env/lib/python2.7/site-packages/south/migration/migrators.py", line 235, in migrate_many
    result = migrator.__class__.migrate_many(migrator, target, migrations, database)
  File "/home/inglor/workspace/archweb-env/lib/python2.7/site-packages/south/migration/migrators.py", line 310, in migrate_many
    result = self.migrate(migration, database)
  File "/home/inglor/workspace/archweb-env/lib/python2.7/site-packages/south/migration/migrators.py", line 133, in migrate
    result = self.run(migration)
  File "/home/inglor/workspace/archweb-env/lib/python2.7/site-packages/south/migration/migrators.py", line 107, in run
    return self.run_migration(migration)
  File "/home/inglor/workspace/archweb-env/lib/python2.7/site-packages/south/migration/migrators.py", line 81, in run_migration
    migration_function()
  File "/home/inglor/workspace/archweb-env/lib/python2.7/site-packages/south/migration/migrators.py", line 57, in <lambda>
    return (lambda: direction(orm))
  File "/home/inglor/workspace/archweb/main/migrations/0055_unique_package_in_repo.py", line 9, in forwards
    db.delete_index('packages', ['pkgname'])
  File "/home/inglor/workspace/archweb-env/lib/python2.7/site-packages/south/db/generic.py", line 44, in _cache_clear
    return func(self, table, *args, **opts)
  File "/home/inglor/workspace/archweb-env/lib/python2.7/site-packages/south/db/generic.py", line 876, in delete_index
    self.execute(sql)
  File "/home/inglor/workspace/archweb-env/lib/python2.7/site-packages/south/db/generic.py", line 273, in execute
    cursor.execute(sql, params)
  File "/home/inglor/workspace/archweb-env/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py", line 337, in execute
    return Database.Cursor.execute(self, query, params)
django.db.utils.DatabaseError: no such index: packages_cab2cbcf