-
Notifications
You must be signed in to change notification settings - Fork 612
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added preview column to the media table
- Loading branch information
1 parent
c9f9921
commit ed448d9
Showing
6 changed files
with
97 additions
and
0 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
database/databases/messages/alembic/versions/d0118d8ec0b4_content.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 @@ | ||
"""content | ||
Revision ID: d0118d8ec0b4 | ||
Revises: 2c36fcc0b921 | ||
Create Date: 2021-02-04 02:59:06.516503 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = 'd0118d8ec0b4' | ||
down_revision = '2c36fcc0b921' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
with op.batch_alter_table('medias', schema=None) as batch_op: | ||
batch_op.add_column(sa.Column('preview', sa.Integer(), nullable=True)) | ||
|
||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
with op.batch_alter_table('medias', schema=None) as batch_op: | ||
batch_op.drop_column('preview') | ||
|
||
# ### end Alembic commands ### |
Binary file not shown.
32 changes: 32 additions & 0 deletions
32
database/databases/posts/alembic/versions/5b4bea08c27f_content.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 @@ | ||
"""content | ||
Revision ID: 5b4bea08c27f | ||
Revises: 194e05269f09 | ||
Create Date: 2021-02-04 02:59:05.010106 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '5b4bea08c27f' | ||
down_revision = '194e05269f09' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
with op.batch_alter_table('medias', schema=None) as batch_op: | ||
batch_op.add_column(sa.Column('preview', sa.Integer(), nullable=True)) | ||
|
||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
with op.batch_alter_table('medias', schema=None) as batch_op: | ||
batch_op.drop_column('preview') | ||
|
||
# ### end Alembic commands ### |
32 changes: 32 additions & 0 deletions
32
database/databases/stories/alembic/versions/29f675c35eee_content.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 @@ | ||
"""content | ||
Revision ID: 29f675c35eee | ||
Revises: 3076beb33c1b | ||
Create Date: 2021-02-04 02:59:01.746229 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '29f675c35eee' | ||
down_revision = '3076beb33c1b' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
with op.batch_alter_table('medias', schema=None) as batch_op: | ||
batch_op.add_column(sa.Column('preview', sa.Integer(), nullable=True)) | ||
|
||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
with op.batch_alter_table('medias', schema=None) as batch_op: | ||
batch_op.drop_column('preview') | ||
|
||
# ### end Alembic commands ### |
Binary file not shown.
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