Files
enterprise_digital-platform/digiserver-v2/migrations/add_https_config_table.py
T

15 lines
380 B
Python

"""Add https_config table for HTTPS configuration management."""
import sys
sys.path.insert(0, '/app')
from app.app import create_app
from app.extensions import db
from app.models.https_config import HTTPSConfig
app = create_app()
with app.app_context():
print("Creating https_config table...")
db.create_all()
print("✓ https_config table created successfully!")