piccolo icon indicating copy to clipboard operation
piccolo copied to clipboard

Multiple Unique Constraints with auto migrations

Open northpowered opened this issue 3 years ago • 4 comments

Full description is in pinned issue ADDED:

  1. UniqueConstraint Class with the same behavior as a Column
  2. CREATE and DROP auto migrations
  3. A bit of doc for a UniqueConstraint Class
  4. Updated tests

IMPORTANT! There`re no ALTER CONSTRAINT option, but will be added soon, I hope. For changing constraint I recommend do it with 2 migrations: DROP->CREATE

northpowered avatar Aug 11 '22 08:08 northpowered

@northpowered Thanks for this, it looks promising!

I think the linters are currently failing because of isort.

dantownsend avatar Aug 11 '22 15:08 dantownsend

@northpowered Thanks for this, it looks promising!

I think the linters are currently failing because of isort.

Mb because we are using different linters Due to testing, I failed only one test, but it`s the similar to the beginning of my work :D Also #583 has some details

northpowered avatar Aug 11 '22 18:08 northpowered

@northpowered Sorry it has taken me so long - let's try and get these tests passing.

dantownsend avatar Oct 14 '22 20:10 dantownsend

@dantownsend I changed list[...] to t.List[...] to keep this compatible with Python3.7 Also upgraded some files up to v.0.109.0

northpowered avatar Mar 06 '23 10:03 northpowered