-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
741e91b
commit a3862cb
Showing
3 changed files
with
37 additions
and
36 deletions.
There are no files selected for viewing
28 changes: 0 additions & 28 deletions
28
migrate/versions/2024_09_28_e64766d96146_add_upload_dir_to_archive.py
This file was deleted.
Oops, something went wrong.
32 changes: 32 additions & 0 deletions
32
migrate/versions/2024_09_30_5cb26063cc6c_redefine_archive_access_points.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 @@ | ||
"""Redefine archive access points | ||
Revision ID: 5cb26063cc6c | ||
Revises: cecb45343667 | ||
Create Date: 2024-09-30 11:56:41.631854 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '5cb26063cc6c' | ||
down_revision = 'cecb45343667' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic ### | ||
op.add_column('archive', sa.Column('download_url', sa.String(), nullable=True)) | ||
op.add_column('archive', sa.Column('upload_url', sa.String(), nullable=True)) | ||
op.drop_column('archive', 'url') | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic ### | ||
op.add_column('archive', sa.Column('url', sa.VARCHAR(), autoincrement=False, nullable=False)) | ||
op.drop_column('archive', 'upload_url') | ||
op.drop_column('archive', 'download_url') | ||
# ### end Alembic commands ### |
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