updates
This commit is contained in:
36
Backend/alembic/versions/add_about_page_fields.py
Normal file
36
Backend/alembic/versions/add_about_page_fields.py
Normal file
@@ -0,0 +1,36 @@
|
||||
"""add_about_page_fields
|
||||
|
||||
Revision ID: f2a3b4c5d6e7
|
||||
Revises: a1b2c3d4e5f6
|
||||
Create Date: 2025-11-20 17:00:00.000000
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = 'f2a3b4c5d6e7'
|
||||
down_revision = 'a1b2c3d4e5f6'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
# Add about page specific fields (all as TEXT to avoid row size issues)
|
||||
op.add_column('page_contents', sa.Column('about_hero_image', sa.Text(), nullable=True))
|
||||
op.add_column('page_contents', sa.Column('mission', sa.Text(), nullable=True))
|
||||
op.add_column('page_contents', sa.Column('vision', sa.Text(), nullable=True))
|
||||
op.add_column('page_contents', sa.Column('team', sa.Text(), nullable=True))
|
||||
op.add_column('page_contents', sa.Column('timeline', sa.Text(), nullable=True))
|
||||
op.add_column('page_contents', sa.Column('achievements', sa.Text(), nullable=True))
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
# Remove about page specific fields
|
||||
op.drop_column('page_contents', 'achievements')
|
||||
op.drop_column('page_contents', 'timeline')
|
||||
op.drop_column('page_contents', 'team')
|
||||
op.drop_column('page_contents', 'vision')
|
||||
op.drop_column('page_contents', 'mission')
|
||||
op.drop_column('page_contents', 'about_hero_image')
|
||||
|
||||
Reference in New Issue
Block a user