mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-25 08:56:02 +03:00
[GH-ISSUE #770] ValueError during migration #692
Labels
No labels
bug
bug
dependencies
design
documentation
duplicate
enhancement
enhancement
enhancement
feedback-needed
help-needed
help-needed
installer
invalid
looking-for-sponsors
modoboa-contacts
new-ui
new-ui
pr
pull-request
pyconfr
python
question
security
stale
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-modoboa#692
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Toniob on GitHub (Oct 29, 2015).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/770
During the migrate from 1.3.4 to 1.3.5, I've got the following error
$ python manage.py migrate
Operations to perform:
Apply all migrations: core, modoboa_admin, lib, sessions, modoboa_postfix_autoreply, modoboa_admin_relaydomains, auth, sites, reversion, contenttypes, modoboa_admin_limits, modoboa_radicale
Running migrations:
Applying modoboa_admin.0005_set_full_address...Traceback (most recent call last):
File "manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/srv/www/toniob.net/admin.mail/local/lib/python2.7/site-packages/django/core/management/init.py", line 385, in execute_from_command_line
utility.execute()
File "/srv/www/toniob.net/admin.mail/local/lib/python2.7/site-packages/django/core/management/init.py", line 377, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/srv/www/toniob.net/admin.mail/local/lib/python2.7/site-packages/django/core/management/base.py", line 288, in run_from_argv
self.execute(_args, *_options.dict)
File "/srv/www/toniob.net/admin.mail/local/lib/python2.7/site-packages/django/core/management/base.py", line 338, in execute
output = self.handle(_args, *_options)
File "/srv/www/toniob.net/admin.mail/local/lib/python2.7/site-packages/django/core/management/commands/migrate.py", line 161, in handle
executor.migrate(targets, plan, fake=options.get("fake", False))
File "/srv/www/toniob.net/admin.mail/local/lib/python2.7/site-packages/django/db/migrations/executor.py", line 68, in migrate
self.apply_migration(migration, fake=fake)
File "/srv/www/toniob.net/admin.mail/local/lib/python2.7/site-packages/django/db/migrations/executor.py", line 102, in apply_migration
migration.apply(project_state, schema_editor)
File "/srv/www/toniob.net/admin.mail/local/lib/python2.7/site-packages/django/db/migrations/migration.py", line 108, in apply
operation.database_forwards(self.app_label, schema_editor, project_state, new_state)
File "/srv/www/toniob.net/admin.mail/local/lib/python2.7/site-packages/django/db/migrations/operations/models.py", line 282, in database_forwards
getattr(new_model._meta, self.option_name, set()),
File "/srv/www/toniob.net/admin.mail/local/lib/python2.7/site-packages/django/db/backends/schema.py", line 310, in alter_unique_together
", ".join(columns),
ValueError: Found wrong number (0) of constraints for admin_alias(address, domain_id)