From cb1cfc8c21c7e7207cc6be85db5fb740d5415ed9 Mon Sep 17 00:00:00 2001 From: Alex Cabal Date: Sat, 14 Dec 2024 00:02:21 -0600 Subject: [PATCH] Add accounting bit to Collections table --- config/sql/se/Collections.sql | 1 + lib/Collection.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/config/sql/se/Collections.sql b/config/sql/se/Collections.sql index a45ef812..272d6f1f 100644 --- a/config/sql/se/Collections.sql +++ b/config/sql/se/Collections.sql @@ -3,6 +3,7 @@ CREATE TABLE IF NOT EXISTS `Collections` ( `Name` varchar(255) NOT NULL, `UrlName` varchar(255) NOT NULL, `Type` enum('series', 'set') NULL, + `ArePlaceholdersComplete` tinyint(1) NOT NULL DEFAULT 0, PRIMARY KEY (`CollectionId`), UNIQUE KEY `idxUnique` (`UrlName`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; diff --git a/lib/Collection.php b/lib/Collection.php index 63418fee..7f5d1c47 100644 --- a/lib/Collection.php +++ b/lib/Collection.php @@ -11,6 +11,8 @@ class Collection{ public string $Name; public string $UrlName; public ?Enums\CollectionType $Type = null; + public bool $ArePlaceholdersComplete; /** Has a producer verified that every possible item in this `Collection` been added to our database? */ + protected ?string $_Url = null;