feat: Enhance auth database setup and environment variable loading
This commit improves the setup of the authentication database by adding a new function to create necessary tables for both frontends. It also ensures that environment variables are loaded from a `.env` file before any database operations, enhancing configuration management. Additionally, minor updates are made to related scripts for better clarity and functionality.
This commit is contained in:
@@ -13,3 +13,4 @@ else
|
||||
echo "⚠️ Failed to drop auth database (it may not exist)"
|
||||
fi
|
||||
|
||||
|
||||
|
||||
@@ -50,3 +50,4 @@ if __name__ == "__main__":
|
||||
success = fix_admin_password()
|
||||
sys.exit(0 if success else 1)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user