@cloud411716/fancy-webnovel 4.16.2 → 4.16.3
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.
|
@@ -5,24 +5,6 @@
|
|
|
5
5
|
|
|
6
6
|
DEFINE TABLE IF NOT EXISTS material SCHEMAFULL PERMISSIONS FOR select FULL;
|
|
7
7
|
|
|
8
|
-
-- v10 -> v11 migration: add facet fields as optional first, backfill existing
|
|
9
|
-
-- records, then tighten them to array<string>. Applying the strict definition
|
|
10
|
-
-- directly makes SurrealDB reject old records that do not have the new fields.
|
|
11
|
-
DEFINE FIELD IF NOT EXISTS tropes ON material TYPE option<array<string>>;
|
|
12
|
-
DEFINE FIELD IF NOT EXISTS narrative ON material TYPE option<array<string>>;
|
|
13
|
-
DEFINE FIELD IF NOT EXISTS traits ON material TYPE option<array<string>>;
|
|
14
|
-
DEFINE FIELD IF NOT EXISTS roles ON material TYPE option<array<string>>;
|
|
15
|
-
DEFINE FIELD IF NOT EXISTS relations ON material TYPE option<array<string>>;
|
|
16
|
-
DEFINE FIELD IF NOT EXISTS moods ON material TYPE option<array<string>>;
|
|
17
|
-
DEFINE FIELD IF NOT EXISTS settings ON material TYPE option<array<string>>;
|
|
18
|
-
UPDATE material SET tropes = [] WHERE tropes = NONE;
|
|
19
|
-
UPDATE material SET narrative = [] WHERE narrative = NONE;
|
|
20
|
-
UPDATE material SET traits = [] WHERE traits = NONE;
|
|
21
|
-
UPDATE material SET roles = [] WHERE roles = NONE;
|
|
22
|
-
UPDATE material SET relations = [] WHERE relations = NONE;
|
|
23
|
-
UPDATE material SET moods = [] WHERE moods = NONE;
|
|
24
|
-
UPDATE material SET settings = [] WHERE settings = NONE;
|
|
25
|
-
|
|
26
8
|
DEFINE FIELD OVERWRITE source ON material TYPE string DEFAULT 'builtin'
|
|
27
9
|
ASSERT $value IN ['builtin', 'other'];
|
|
28
10
|
DEFINE FIELD OVERWRITE kind ON material TYPE string
|
|
@@ -43,13 +25,13 @@ DEFINE FIELD OVERWRITE name ON material TYPE string;
|
|
|
43
25
|
DEFINE FIELD OVERWRITE tags ON material TYPE array<string> DEFAULT [];
|
|
44
26
|
DEFINE FIELD OVERWRITE subject ON material TYPE option<string>;
|
|
45
27
|
DEFINE FIELD OVERWRITE genres ON material TYPE array<string> DEFAULT [];
|
|
46
|
-
DEFINE FIELD OVERWRITE tropes ON material TYPE array<string
|
|
47
|
-
DEFINE FIELD OVERWRITE narrative ON material TYPE array<string
|
|
48
|
-
DEFINE FIELD OVERWRITE traits ON material TYPE array<string
|
|
49
|
-
DEFINE FIELD OVERWRITE roles ON material TYPE array<string
|
|
50
|
-
DEFINE FIELD OVERWRITE relations ON material TYPE array<string
|
|
51
|
-
DEFINE FIELD OVERWRITE moods ON material TYPE array<string
|
|
52
|
-
DEFINE FIELD OVERWRITE settings ON material TYPE array<string
|
|
28
|
+
DEFINE FIELD OVERWRITE tropes ON material TYPE option<array<string>>;
|
|
29
|
+
DEFINE FIELD OVERWRITE narrative ON material TYPE option<array<string>>;
|
|
30
|
+
DEFINE FIELD OVERWRITE traits ON material TYPE option<array<string>>;
|
|
31
|
+
DEFINE FIELD OVERWRITE roles ON material TYPE option<array<string>>;
|
|
32
|
+
DEFINE FIELD OVERWRITE relations ON material TYPE option<array<string>>;
|
|
33
|
+
DEFINE FIELD OVERWRITE moods ON material TYPE option<array<string>>;
|
|
34
|
+
DEFINE FIELD OVERWRITE settings ON material TYPE option<array<string>>;
|
|
53
35
|
DEFINE FIELD IF NOT EXISTS group_id ON material TYPE option<string>;
|
|
54
36
|
DEFINE FIELD IF NOT EXISTS subkind ON material TYPE option<string>;
|
|
55
37
|
DEFINE FIELD OVERWRITE note ON material TYPE string DEFAULT ''
|