forked from folio-org/mod-configuration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.json
75 lines (75 loc) · 2.08 KB
/
schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{
"scripts": [
{
"run": "after",
"snippetPath": "migration/config_data.sql",
"fromModuleVersion": "mod-configuration-5.3.0"
}
],
"tables": [
{
"tableName": "config_data",
"withMetadata": true,
"withAuditing": true,
"auditingTableName": "audit_config_data",
"auditingFieldName": "config_data",
"ginIndex": [
{
"fieldName": "value",
"tOps": "ADD",
"caseSensitive": false,
"removeAccents": true
}
],
"likeIndex": [
{
"fieldName": "configName",
"tOps": "ADD",
"caseSensitive": false,
"whereClause": "WHERE ((jsonb->>'enabled'))::boolean = true",
"removeAccents": false
},
{
"fieldName": "code",
"tOps": "ADD",
"caseSensitive": false,
"removeAccents": false
}
],
"uniqueIndex": [
{
"fieldName": "module, configName, code",
"whereClause": "WHERE (jsonb->'code') is not null AND (jsonb->'userId') is null AND (jsonb->>'enabled')::boolean is true",
"tOps": "ADD"
},
{
"fieldName": "module, configName",
"whereClause": "WHERE (jsonb->'code') is null AND (jsonb->'userId') is null AND (jsonb->>'enabled')::boolean is true",
"tOps": "ADD"
},
{
"fieldName": "module, configName, code, userId",
"whereClause": "WHERE (jsonb->'code') is not null AND (jsonb->'userId') is not null AND (jsonb->>'enabled')::boolean is true",
"tOps": "ADD"
},
{
"fieldName": "module, configName, userId",
"whereClause": "WHERE (jsonb->'code') is null AND (jsonb->'userId') is not null AND (jsonb->>'enabled')::boolean is true",
"tOps": "ADD"
}
],
"index": [
{
"fieldName": "module",
"tOps": "ADD",
"removeAccents": false
},
{
"fieldName": "default",
"tOps": "ADD",
"stringType": false
}
]
}
]
}