Add waiting system application files
- Add main application files (main.py, models.py, schemas.py, etc.) - Add routers for all features (waiting, attendance, members, etc.) - Add HTML templates for admin and user interfaces - Add migration scripts and utility files - Add Docker configuration - Add documentation files - Add .gitignore to exclude database and cache files 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
29
migrations/add_keypad_settings.py
Normal file
29
migrations/add_keypad_settings.py
Normal file
@@ -0,0 +1,29 @@
|
||||
"""Add keypad style settings to store_settings
|
||||
|
||||
Revision ID: add_keypad_settings
|
||||
Create Date: 2025-12-09
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
def upgrade():
|
||||
# Add keypad_style column
|
||||
op.add_column('store_settings',
|
||||
sa.Column('keypad_style', sa.String(), nullable=True, server_default='modern')
|
||||
)
|
||||
|
||||
# Add keypad_font_size column
|
||||
op.add_column('store_settings',
|
||||
sa.Column('keypad_font_size', sa.String(), nullable=True, server_default='large')
|
||||
)
|
||||
|
||||
# Update existing rows to have default values
|
||||
op.execute("UPDATE store_settings SET keypad_style = 'modern' WHERE keypad_style IS NULL")
|
||||
op.execute("UPDATE store_settings SET keypad_font_size = 'large' WHERE keypad_font_size IS NULL")
|
||||
|
||||
|
||||
def downgrade():
|
||||
op.drop_column('store_settings', 'keypad_font_size')
|
||||
op.drop_column('store_settings', 'keypad_style')
|
||||
Reference in New Issue
Block a user