Skip to content

Commit

Permalink
fixup! fix for sqlite
Browse files Browse the repository at this point in the history
  • Loading branch information
ephraimbuddy committed Nov 22, 2024
1 parent 7940140 commit 5f5adbc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@

from __future__ import annotations

import sqlalchemy as sa
from alembic import op

from airflow.utils.sqlalchemy import UtcDateTime

# revision identifiers, used by Alembic.
revision = "1cdc775ca98f"
down_revision = "a2c32e6c7729"
Expand All @@ -47,7 +48,7 @@ def upgrade():
batch_op.alter_column(
"execution_date",
new_column_name="logical_date",
existing_type=sa.TIMESTAMP,
existing_type=UtcDateTime,
existing_nullable=False,
)
with op.batch_alter_table("dag_run", schema=None) as batch_op:
Expand All @@ -59,7 +60,7 @@ def downgrade():
batch_op.alter_column(
"logical_date",
new_column_name="execution_date",
existing_type=sa.TIMESTAMP,
existing_type=UtcDateTime,
existing_nullable=False,
)
with op.batch_alter_table("dag_run", schema=None) as batch_op:
Expand Down
2 changes: 1 addition & 1 deletion docs/apache-airflow/img/airflow_erd.sha256
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7173ce2b98bc53467274ebe89bd3d4c8e7672f7b40b3f22989139ece45741f8f
a81bc0639419e66abacc09d95177df593b10d8944708212ea2a96a51070b7b31

0 comments on commit 5f5adbc

Please sign in to comment.