mirror of
https://github.com/aykhans/portfolio-blog.git
synced 2025-08-02 14:54:24 +00:00
Added create and update post pages
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
"""post_image_cant_be_null
|
||||
|
||||
Revision ID: 07c09e1cbd97
|
||||
Revises: ac935b3059fa
|
||||
Create Date: 2023-09-13 18:47:08.904873
|
||||
|
||||
"""
|
||||
from typing import Sequence, Union
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision: str = '07c09e1cbd97'
|
||||
down_revision: Union[str, None] = 'ac935b3059fa'
|
||||
branch_labels: Union[str, Sequence[str], None] = None
|
||||
depends_on: Union[str, Sequence[str], None] = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.alter_column('post', 'image_path',
|
||||
existing_type=sa.VARCHAR(length=100),
|
||||
nullable=False)
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.alter_column('post', 'image_path',
|
||||
existing_type=sa.VARCHAR(length=100),
|
||||
nullable=True)
|
||||
# ### end Alembic commands ###
|
Reference in New Issue
Block a user