mirror of
https://github.com/jazzband/django-constance.git
synced 2026-05-01 12:14:53 +00:00
Merge pull request #39 from lmorchard/migration-key-fix
Migration tweak to fix a failure in switching column types for key
This commit is contained in:
commit
e4bd353762
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ class Migration(SchemaMigration):
|
|||
# Changing field 'Constance.key'
|
||||
db.alter_column('constance_config', 'key',
|
||||
self.gf('django.db.models.fields.CharField')(
|
||||
unique=True, max_length=255))
|
||||
max_length=255))
|
||||
# Adding unique constraint on 'Constance', fields ['key']
|
||||
db.create_unique('constance_config', ['key'])
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue