Publier Globinours 1.0.0-rc.3

This commit is contained in:
Alexandre NOEL 2026-09-03 12:39:15 +02:00
commit 9a2b4068da
325 changed files with 38230 additions and 20 deletions

18
scripts/migrate.php Normal file
View file

@ -0,0 +1,18 @@
<?php
declare(strict_types=1);
if (PHP_SAPI !== 'cli') {
http_response_code(404);
exit(1);
}
$root = dirname(__DIR__);
require_once $root . '/app/Services/DB.php';
require_once $root . '/app/Services/Migrations.php';
Migrations::run($root . '/migrations');
$integrity = DB::pdo()->query('PRAGMA integrity_check')->fetchColumn();
if ($integrity !== 'ok') {
fwrite(STDERR, "SQLite integrity check failed: $integrity\n");
exit(2);
}
fwrite(STDOUT, "Migrations applied; SQLite integrity: ok\n");