Fix status

This commit is contained in:
AlphaX-Projects 2023-11-04 16:30:28 +01:00 committed by GitHub
parent 050886a496
commit e885a69688
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1019,7 +1019,7 @@ public class HSQLDBDatabaseUpdates {
stmt.execute("CREATE TABLE ArbitraryResourcesCache (service SMALLINT NOT NULL, " stmt.execute("CREATE TABLE ArbitraryResourcesCache (service SMALLINT NOT NULL, "
+ "name RegisteredName NOT NULL, identifier VARCHAR(64), size INT NOT NULL, " + "name RegisteredName NOT NULL, identifier VARCHAR(64), size INT NOT NULL, "
+ "status INTEGER, created_when EpochMillis NOT NULL, updated_when EpochMillis, " + "status INTEGER DEFAULT 1, created_when EpochMillis NOT NULL, updated_when EpochMillis, "
+ "PRIMARY KEY (service, name, identifier))"); + "PRIMARY KEY (service, name, identifier))");
// For finding resources by service. // For finding resources by service.
stmt.execute("CREATE INDEX ArbitraryResourcesServiceIndex ON ArbitraryResourcesCache (service)"); stmt.execute("CREATE INDEX ArbitraryResourcesServiceIndex ON ArbitraryResourcesCache (service)");
@ -1057,4 +1057,4 @@ public class HSQLDBDatabaseUpdates {
LOGGER.info(() -> String.format("HSQLDB repository updated to version %d", databaseVersion + 1)); LOGGER.info(() -> String.format("HSQLDB repository updated to version %d", databaseVersion + 1));
return true; return true;
} }
} }