1
0

inversion mysql -> sqlite par defaut

This commit is contained in:
unfr
2025-07-31 17:19:02 +02:00
parent beecdac997
commit f45cf6d29f
2 changed files with 6 additions and 7 deletions

View File

@@ -8,14 +8,14 @@ checkdb() {
if [ "$dbtype" = "sqlite" ]; then
if [ ! -f "$DB_FILE" ]; then
echo "La base de données n'existe pas. Création..."
#do_createdb
do_createdb
fi
else
# Vérifie si la table existe, sinon crée-la
exists=$(db_query "SHOW TABLES LIKE 'release';")
if [ -z "$exists" ]; then
echo "La table 'release' n'existe pas. Création..."
#do_createdb
do_createdb
fi
fi
}