@paroicms/server-text-cache-system 1.21.4 → 1.21.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/ddl/text-cache.ddl.sql
CHANGED
|
@@ -8,7 +8,7 @@ create table PaMetadata (
|
|
|
8
8
|
primary key (dbSchema, k)
|
|
9
9
|
);
|
|
10
10
|
|
|
11
|
-
insert into PaMetadata (dbSchema, k, val) values ('text-cache', 'dbSchemaVersion', '
|
|
11
|
+
insert into PaMetadata (dbSchema, k, val) values ('text-cache', 'dbSchemaVersion', '5');
|
|
12
12
|
|
|
13
13
|
create table PaTextCache (
|
|
14
14
|
k varchar(250) not null primary key,
|
|
@@ -18,6 +18,9 @@ create table PaTextCache (
|
|
|
18
18
|
readAt timestamp not null default current_timestamp
|
|
19
19
|
);
|
|
20
20
|
|
|
21
|
+
create index PaTextCache_modifiedAt_idx on PaTextCache (modifiedAt);
|
|
22
|
+
create index PaTextCache_readAt_idx on PaTextCache (readAt);
|
|
23
|
+
|
|
21
24
|
create table PaTextCacheDependency (
|
|
22
25
|
cacheK varchar(250) not null references PaTextCache (k) on delete cascade,
|
|
23
26
|
depK varchar(250) not null,
|
|
@@ -34,4 +37,4 @@ create table PaTextCacheScheduledInvalidation (
|
|
|
34
37
|
primary key (eventK, depK)
|
|
35
38
|
);
|
|
36
39
|
|
|
37
|
-
create index
|
|
40
|
+
create index PaTextCacheScheduledInvalidation_scheduledAt_idx on PaTextCacheScheduledInvalidation (scheduledAt);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { AppLogger } from "@paroicms/public-server-lib";
|
|
2
2
|
import type { Knex } from "knex";
|
|
3
3
|
export declare const dbSchemaName = "text-cache";
|
|
4
|
-
export declare const currentDbSchemaVersion =
|
|
4
|
+
export declare const currentDbSchemaVersion = 5;
|
|
5
5
|
export declare function migrateTextCacheDb(cn: Knex, { fromVersion, logger, dependsOn }: {
|
|
6
6
|
fromVersion: number;
|
|
7
7
|
logger: AppLogger;
|
|
@@ -2,7 +2,7 @@ import { executeDdl, getMetadataDbSchemaVersion, insertNewDatabaseMetadataValues
|
|
|
2
2
|
import { join } from "node:path";
|
|
3
3
|
import { packageDir } from "../constants.js";
|
|
4
4
|
export const dbSchemaName = "text-cache";
|
|
5
|
-
export const currentDbSchemaVersion =
|
|
5
|
+
export const currentDbSchemaVersion = 5;
|
|
6
6
|
export async function migrateTextCacheDb(cn, { fromVersion, logger, dependsOn }) {
|
|
7
7
|
const toVersion = currentDbSchemaVersion;
|
|
8
8
|
let currentVersion = fromVersion;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paroicms/server-text-cache-system",
|
|
3
|
-
"version": "1.21.
|
|
3
|
+
"version": "1.21.5",
|
|
4
4
|
"description": "Cache system.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"paroicms",
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@paroi/async-lib": "~0.3.1",
|
|
31
|
-
"@paroicms/internal-anywhere-lib": "1.35.
|
|
32
|
-
"@paroicms/internal-server-lib": "1.22.
|
|
33
|
-
"@paroicms/public-anywhere-lib": "0.
|
|
34
|
-
"@paroicms/public-server-lib": "0.
|
|
35
|
-
"@paroicms/script-lib": "0.3.
|
|
31
|
+
"@paroicms/internal-anywhere-lib": "1.35.5",
|
|
32
|
+
"@paroicms/internal-server-lib": "1.22.5",
|
|
33
|
+
"@paroicms/public-anywhere-lib": "0.38.0",
|
|
34
|
+
"@paroicms/public-server-lib": "0.48.0",
|
|
35
|
+
"@paroicms/script-lib": "0.3.5",
|
|
36
36
|
"arktype": "~2.1.23"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|