-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds description, content_updated_time and content_created_time to IndexRecord. Maps content_updated_time and content_created_time to updated_time and created_time in the DRS responses. Maps IndexRecord updated_time and created_time to index_updated_time and index_created_time in DRS responses.
- Loading branch information
1 parent
5f0435b
commit 1845dd8
Showing
12 changed files
with
499 additions
and
32 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 |
---|---|---|
|
@@ -67,3 +67,5 @@ docs/_build/ | |
local_settings.py | ||
settings.yaml | ||
*.sq3 | ||
#IDEs | ||
.idea |
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
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
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
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
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
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
32 changes: 32 additions & 0 deletions
32
migrations/versions/a72f117515c5_add_description_created_time_and_.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,32 @@ | ||
"""Add description, created_time and updated_time columns to IndexRecord | ||
Revision ID: a72f117515c5 | ||
Revises: 15f2e9345ade | ||
Create Date: 2023-04-11 10:00:59.250768 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = "a72f117515c5" | ||
down_revision = "15f2e9345ade" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade() -> None: | ||
op.add_column( | ||
"index_record", sa.Column("content_created_date", sa.DateTime, nullable=True) | ||
) | ||
op.add_column( | ||
"index_record", sa.Column("content_updated_date", sa.DateTime, nullable=True) | ||
) | ||
op.add_column("index_record", sa.Column("description", sa.VARCHAR(), nullable=True)) | ||
|
||
|
||
def downgrade() -> None: | ||
op.drop_column("index_record", "content_created_date") | ||
op.drop_column("index_record", "content_updated_date") | ||
op.drop_column("index_record", "description") |
Oops, something went wrong.