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:
25
migrate_add_font_settings.py
Normal file
25
migrate_add_font_settings.py
Normal file
@@ -0,0 +1,25 @@
|
||||
import sqlite3
|
||||
|
||||
def migrate():
|
||||
conn = sqlite3.connect('waiting_system.db')
|
||||
cursor = conn.cursor()
|
||||
|
||||
columns = [
|
||||
("manager_font_family", "TEXT", "'Nanum Gothic'"),
|
||||
("manager_font_size", "TEXT", "'15px'"),
|
||||
("board_font_family", "TEXT", "'Nanum Gothic'"),
|
||||
("board_font_size", "TEXT", "'24px'")
|
||||
]
|
||||
|
||||
for col, type_aff, default in columns:
|
||||
try:
|
||||
cursor.execute(f"ALTER TABLE store_settings ADD COLUMN {col} {type_aff} DEFAULT {default}")
|
||||
print(f"Added column {col}")
|
||||
except sqlite3.OperationalError as e:
|
||||
print(f"Column {col} already exists or error: {e}")
|
||||
|
||||
conn.commit()
|
||||
conn.close()
|
||||
|
||||
if __name__ == "__main__":
|
||||
migrate()
|
||||
Reference in New Issue
Block a user