mirror of
https://github.com/rommapp/romm.git
synced 2026-06-27 22:35:57 +00:00
cleanup
This commit is contained in:
@@ -1,10 +1,6 @@
|
||||
from alembic import op
|
||||
from sqlalchemy import inspect
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Table helpers
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
|
||||
def create_table_if_not_exists(table_name, *args, **kwargs):
|
||||
"""Wrap op.create_table with an existence check.
|
||||
@@ -27,11 +23,6 @@ def drop_table_if_exists(table_name):
|
||||
op.drop_table(table_name)
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Column helpers
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
|
||||
def _get_column_names(table_name):
|
||||
"""Return the set of column names currently on *table_name*."""
|
||||
bind = op.get_bind()
|
||||
|
||||
Reference in New Issue
Block a user