mirror of
https://github.com/apache/superset.git
synced 2026-05-07 08:54:23 +00:00
chore: isolate examples database by default (#25003)
(cherry picked from commit 269c99293f)
This commit is contained in:
committed by
Michael S. Molina
parent
ea27cf13d3
commit
c2c5f232c8
@@ -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