Version 1.1.1
This commit is contained in:
@@ -11,7 +11,7 @@ import os
|
||||
|
||||
from werkzeug.security import generate_password_hash
|
||||
|
||||
from app import app, db, User, Church
|
||||
from app import app, db, User, Church, get_smtp_settings
|
||||
|
||||
|
||||
def main() -> None:
|
||||
@@ -21,6 +21,9 @@ def main() -> None:
|
||||
with app.app_context():
|
||||
db.create_all()
|
||||
|
||||
# Ensure singleton SMTP settings row exists
|
||||
get_smtp_settings()
|
||||
|
||||
if not User.query.filter_by(username=admin_username).first():
|
||||
admin_church = Church.query.filter_by(name="Admin").first()
|
||||
if not admin_church:
|
||||
|
||||
Reference in New Issue
Block a user