fix: moved to creyPY create_if_not_exist

This commit is contained in:
2025-07-09 19:54:16 +02:00
parent 06e5a3af30
commit d5907074c9
2 changed files with 1 additions and 9 deletions

View File

@@ -1,8 +0,0 @@
from sqlalchemy_utils import create_database, database_exists
def create_if_not_exists(db_name: str):
from creyPY.fastapi.db.session import SQLALCHEMY_DATABASE_URL
if not database_exists(SQLALCHEMY_DATABASE_URL + db_name):
create_database(SQLALCHEMY_DATABASE_URL + db_name)