3
0
Fork 0

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:
Lance Edgar 2024-12-07 23:45:47 -06:00
parent 6a471b87c2
commit e1785ccfcc
8 changed files with 72 additions and 109 deletions

View file

@ -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):