mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
chore: isolate examples database by default (#25003)
This commit is contained in:
committed by
GitHub
parent
10abb68288
commit
269c99293f
@@ -65,11 +65,7 @@ def get_or_create_db(
|
||||
|
||||
|
||||
def get_example_database() -> Database:
|
||||
db_uri = (
|
||||
current_app.config.get("SQLALCHEMY_EXAMPLES_URI")
|
||||
or current_app.config["SQLALCHEMY_DATABASE_URI"]
|
||||
)
|
||||
return get_or_create_db("examples", db_uri)
|
||||
return get_or_create_db("examples", current_app.config["SQLALCHEMY_EXAMPLES_URI"])
|
||||
|
||||
|
||||
def get_main_database() -> Database:
|
||||
|
||||
Reference in New Issue
Block a user