Changes between Initial Version and Version 1 of Ticket #33673
- Timestamp:
- Apr 30, 2022, 1:50:49 PM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #33673 – Description
initial v1 5 5 Creating the migrations for this schema: 6 6 7 ``` 7 8 {{{ 8 9 class M(): 9 10 a = models.IntegerField(default=1) … … 15 16 ) 16 17 ] 17 ``` 18 }}} 19 18 20 19 21 Create the constraint `uniq_ab_1` is Postgres as expected (when using the `\d+` command on the table to visualize) 20 22 21 23 However, this manual migration will remove the constraint, due to one of its member columns being deleted, this is just standard Postgres behavior: 22 ``` 24 25 {{{ 23 26 migrations.RemoveField( 24 27 model_name=“m”, … … 30 33 field=models.IntegerField(default=6), 31 34 ), 32 ``` 35 }}} 36 33 37 34 38 This migration runs just fine. I can even modify the field of `M` again and run a further migration. However, using `\d+` reveals that the `uniq_ab_1` constraint` is gone from the database.