Skip to content

Commit

Permalink
Add test database and fix migration paths
Browse files Browse the repository at this point in the history
  • Loading branch information
ibazulic committed Sep 30, 2024
1 parent 35dffd7 commit 5641053
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 38 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
"""Add export logs auditing
Revision ID: 8e97c2cfee57
Revises: a32e17bfad20
Revises: 9085e82074f2
Create Date: 2024-08-19 13:56:50.063519
"""

# revision identifiers, used by Alembic.
revision = "8e97c2cfee57"
down_revision = "a32e17bfad20"
down_revision = "9085e82074f2"

import sqlalchemy as sa
from sqlalchemy import String


def upgrade(op, tables, tester):
Expand All @@ -27,11 +26,11 @@ def upgrade(op, tables, tester):
def downgrade(op, tables, tester):
op.execute(
tables.logentrykind.delete().where(
tables.logentrykind.name == op.inline_literal("export_logs_success")
tables.logentrykind.c.name == op.inline_literal("export_logs_success")
)
)
op.execute(
tables.logentrykind.delete().where(
tables.logentrykind.name == op.inline_literal("export_logs_failure")
tables.logentrykind.c.name == op.inline_literal("export_logs_failure")
)
)
Loading

0 comments on commit 5641053

Please sign in to comment.