Adding a unique constraint solution correction
Correct solution to instruct app code to follow unique constraint before db constraint is deployed
This commit is contained in:
1 parent
3503367f1f
commit
117967a957
1 file changed
+1
-1
@@ -163,7 +163,7 @@ At some point, start using the new column and delete the old one once the migrat
|
|||||||
3. rollback your DB to drop the unique constraint, and it should work again
|
3. rollback your DB to drop the unique constraint, and it should work again
|
||||||
|
|
||||||
:white_check_mark: **Solutions**:
|
:white_check_mark: **Solutions**:
|
||||||
- Do a multistep deployment. First, make sure that the code is only pushing a value if it is not unique.
|
- Do a multistep deployment. First, make sure that the code is only pushing a value if it is unique.
|
||||||
|
|
||||||
### :arrow_forward: Importing a model in a RunPython migration
|
### :arrow_forward: Importing a model in a RunPython migration
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user