Added migrations script

This commit is contained in:
julien
2026-03-09 03:01:13 +01:00
parent 7424928003
commit 84cd2a8268
3 changed files with 38 additions and 14 deletions

View File

@@ -60,17 +60,6 @@ if (!isset($medooOptions['database_name'])) {
}
$database = new Medoo($medooOptions);
// Créer la table si nécessaire (schéma minimal)
$database->query(
<<<'SQL'
CREATE TABLE IF NOT EXISTS post (
id INTEGER PRIMARY KEY AUTOINCREMENT,
title TEXT NOT NULL,
content TEXT NOT NULL
);
SQL
);
// -------------------------
// Services (container simple)
// -------------------------