Added migrations script
This commit is contained in:
@@ -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)
|
||||
// -------------------------
|
||||
|
||||
Reference in New Issue
Block a user