feat: convert all uuid fields from str to proper UUID
ugh had to rewrite alembic migrations instead of just adding a new one.. will be good to be past this hiccup
This commit is contained in:
parent
6a471b87c2
commit
e1785ccfcc
8 changed files with 72 additions and 109 deletions
|
@ -114,8 +114,7 @@ else:
|
|||
def test_basic(self):
|
||||
column = mod.uuid_column()
|
||||
self.assertIsInstance(column, sa.Column)
|
||||
self.assertIsInstance(column.type, sa.String)
|
||||
self.assertEqual(column.type.length, 32)
|
||||
self.assertIsInstance(column.type, mod.UUID)
|
||||
|
||||
|
||||
class TestUUIDFKColumn(TestCase):
|
||||
|
@ -123,8 +122,7 @@ else:
|
|||
def test_basic(self):
|
||||
column = mod.uuid_fk_column('foo.bar')
|
||||
self.assertIsInstance(column, sa.Column)
|
||||
self.assertIsInstance(column.type, sa.String)
|
||||
self.assertEqual(column.type.length, 32)
|
||||
self.assertIsInstance(column.type, mod.UUID)
|
||||
|
||||
|
||||
class TestMakeTopoSortkey(DataTestCase):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue