This commit is contained in:
Timothy J. Baek committed 2024-10-01 09:40:08 -07:00
1 parent c7a0e45bea
commit 4752df9bd8
3 files changed
+6 -20

No files matched your search

+5
View File
@@ -1,5 +1,6 @@
from alembic import op
from sqlalchemy import Inspector
import uuid
def get_existing_tables():
@@ -7,3 +8,7 @@ def get_existing_tables():
inspector = Inspector.from_engine(con)
tables = set(inspector.get_table_names())
return tables
def get_revision_id():
return str(uuid.uuid4()).replace("-", "")[:12]