inversion mysql -> sqlite par defaut
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user