-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WCM-291: Add forgotten date_last_modified column
- Loading branch information
Showing
3 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
WCM-291: Add forgotten date_last_modified column |
30 changes: 30 additions & 0 deletions
30
...src/zeit/connector/migrations/predeploy/20240926_1150-28355ecfa735_add_modified_column.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
"""add modified column | ||
(was forgotten in b7304b8f2b06) | ||
Revision ID: 28355ecfa735 | ||
Revises: b7304b8f2b06 | ||
Create Date: 2024-09-26 11:50:35.942786 | ||
""" | ||
|
||
from typing import Sequence, Union | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision: str = '28355ecfa735' | ||
down_revision: Union[str, None] = 'b7304b8f2b06' | ||
branch_labels: Union[str, Sequence[str], None] = None | ||
depends_on: Union[str, Sequence[str], None] = None | ||
|
||
|
||
def upgrade() -> None: | ||
op.add_column( | ||
'properties', sa.Column('date_last_modified', sa.TIMESTAMP(timezone=True), nullable=True) | ||
) | ||
|
||
|
||
def downgrade() -> None: | ||
op.drop_column('properties', 'date_last_modified') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters