from alembic import op
import sqlalchemy as sa
revision = 'bfa74be4b256'
down_revision = 'bd309b0742c1'
branch_labels = None
depends_on = None

def upgrade() -> None:
    op.add_column('page_contents', sa.Column('amenities_section_title', sa.String(500), nullable=True))
    op.add_column('page_contents', sa.Column('amenities_section_subtitle', sa.String(1000), nullable=True))
    op.add_column('page_contents', sa.Column('amenities', sa.Text(), nullable=True))
    op.add_column('page_contents', sa.Column('testimonials_section_title', sa.String(500), nullable=True))
    op.add_column('page_contents', sa.Column('testimonials_section_subtitle', sa.String(1000), nullable=True))
    op.add_column('page_contents', sa.Column('testimonials', sa.Text(), nullable=True))
    op.add_column('page_contents', sa.Column('gallery_section_title', sa.String(500), nullable=True))
    op.add_column('page_contents', sa.Column('gallery_section_subtitle', sa.String(1000), nullable=True))
    op.add_column('page_contents', sa.Column('gallery_images', sa.Text(), nullable=True))
    op.add_column('page_contents', sa.Column('about_preview_title', sa.String(500), nullable=True))
    op.add_column('page_contents', sa.Column('about_preview_subtitle', sa.String(1000), nullable=True))
    op.add_column('page_contents', sa.Column('about_preview_content', sa.Text(), nullable=True))
    op.add_column('page_contents', sa.Column('about_preview_image', sa.String(1000), nullable=True))
    op.add_column('page_contents', sa.Column('stats', sa.Text(), nullable=True))

def downgrade() -> None:
    op.drop_column('page_contents', 'stats')
    op.drop_column('page_contents', 'about_preview_image')
    op.drop_column('page_contents', 'about_preview_content')
    op.drop_column('page_contents', 'about_preview_subtitle')
    op.drop_column('page_contents', 'about_preview_title')
    op.drop_column('page_contents', 'gallery_images')
    op.drop_column('page_contents', 'gallery_section_subtitle')
    op.drop_column('page_contents', 'gallery_section_title')
    op.drop_column('page_contents', 'testimonials')
    op.drop_column('page_contents', 'testimonials_section_subtitle')
    op.drop_column('page_contents', 'testimonials_section_title')
    op.drop_column('page_contents', 'amenities')
    op.drop_column('page_contents', 'amenities_section_subtitle')
    op.drop_column('page_contents', 'amenities_section_title')