Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def upgrade():
write_revision_post_alembic(revision)
def upgrade():
import sys
import os
sys.path.append(os.path.abspath(os.path.join(__file__, "../../../..")))
from databases.alembic_post_utils import write_revision_post_alembic
write_revision_post_alembic(revision)
with op.batch_alter_table("conditional_data") as batch_op:
batch_op.add_column(sa.Column('controller_id', sa.Text))
def upgrade():
write_revision_post_alembic(revision)
def upgrade():
write_revision_post_alembic(revision)
try:
os.remove(ID_FILE)
os.remove(STATS_CSV)
except:
pass
def upgrade():
import sys
import os
sys.path.append(os.path.abspath(os.path.join(__file__, "../../../..")))
from databases.alembic_post_utils import write_revision_post_alembic
write_revision_post_alembic(revision)
with op.batch_alter_table("input") as batch_op:
batch_op.add_column(sa.Column('start_offset', sa.Float))
with op.batch_alter_table("dashboard") as batch_op:
batch_op.add_column(sa.Column('disable_data_grouping', sa.Text))
op.execute(
'''
UPDATE input
SET start_offset=0
'''
)
op.execute(
'''
UPDATE dashboard
def upgrade():
# No database schema changes, just need to execute post-alembic code
import sys
import os
sys.path.append(os.path.abspath(os.path.join(__file__, "../../../..")))
from databases.alembic_post_utils import write_revision_post_alembic
write_revision_post_alembic(revision)
def upgrade():
write_revision_post_alembic(revision)
def upgrade():
write_revision_post_alembic(revision)
with op.batch_alter_table("misc") as batch_op:
batch_op.add_column(sa.Column('daemon_debug_mode', sa.Boolean))
op.execute(
'''
UPDATE misc