add fix migration issue
This commit is contained in:
parent
9fbb8f01de
commit
833fada6d1
12
db_migration_resolve.txt
Normal file
12
db_migration_resolve.txt
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
В случае возникновения проблемы с применением миграции account 0027:
|
||||||
|
|
||||||
|
1 Удаляем unique together constrain для app - account
|
||||||
|
ALTER TABLE account_userrole
|
||||||
|
DROP CONSTRAINT account_userrole_user_id_role_id_26fa14c4_uniq;
|
||||||
|
2 Правим миграцию 0023
|
||||||
|
migrations.AlterUniqueTogether(
|
||||||
|
name='userrole',
|
||||||
|
unique_together=set(),
|
||||||
|
),
|
||||||
|
3 Применяем account 0027
|
||||||
|
4 Возвращаем миграцию account 0023, в исходное состояние
|
||||||
Loading…
Reference in New Issue
Block a user