fix: apply black formatting to alembic migration file
Agent-Logs-Url: https://github.com/christianlouis/InboxConverge/sessions/7d808813-2577-41cc-b90b-26cf974a22cb Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
@@ -29,15 +29,10 @@ def upgrade() -> None:
|
|||||||
"ADD COLUMN IF NOT EXISTS name VARCHAR(255) NOT NULL DEFAULT 'My Notification'"
|
"ADD COLUMN IF NOT EXISTS name VARCHAR(255) NOT NULL DEFAULT 'My Notification'"
|
||||||
)
|
)
|
||||||
op.execute(
|
op.execute(
|
||||||
"ALTER TABLE notification_configs "
|
"ALTER TABLE notification_configs " "ADD COLUMN IF NOT EXISTS apprise_url TEXT"
|
||||||
"ADD COLUMN IF NOT EXISTS apprise_url TEXT"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
def downgrade() -> None:
|
def downgrade() -> None:
|
||||||
op.execute(
|
op.execute("ALTER TABLE notification_configs DROP COLUMN IF EXISTS apprise_url")
|
||||||
"ALTER TABLE notification_configs DROP COLUMN IF EXISTS apprise_url"
|
op.execute("ALTER TABLE notification_configs DROP COLUMN IF EXISTS name")
|
||||||
)
|
|
||||||
op.execute(
|
|
||||||
"ALTER TABLE notification_configs DROP COLUMN IF EXISTS name"
|
|
||||||
)
|
|
||||||
|
|||||||
Reference in New Issue
Block a user