Use auto IDs; drop to PHP 8.2

This commit is contained in:
2024-06-11 21:03:27 -04:00
parent 08fd589481
commit 3cafb318dc
11 changed files with 45 additions and 53 deletions

View File

@@ -2,7 +2,7 @@
/** The current Feed Reader Central version */
use BitBadger\PDODocument\Configuration;
use BitBadger\PDODocument\{AutoId, Configuration};
use FeedReaderCentral\Data;
const FRC_VERSION = '1.0.0-beta1';
@@ -27,6 +27,7 @@ require __DIR__ . '/vendor/autoload.php';
require 'user-config.php';
Configuration::$pdoDSN = 'sqlite:' . implode(DIRECTORY_SEPARATOR, [__DIR__, 'data', DATABASE_NAME]);
Configuration::$autoId = AutoId::Number;
Data::ensureDb();
/** @var string The date the world wide web was created */