|
| 1 | +{ |
| 2 | + "formatVersion": 3, |
| 3 | + "modifications": [ |
| 4 | + { |
| 5 | + "modification": "createEnum", |
| 6 | + "enumName": "LinkType", |
| 7 | + "values": [ |
| 8 | + "internal", |
| 9 | + "external" |
| 10 | + ] |
| 11 | + }, |
| 12 | + { |
| 13 | + "modification": "createEntity", |
| 14 | + "entity": { |
| 15 | + "name": "Link", |
| 16 | + "primary": "id", |
| 17 | + "primaryColumn": "id", |
| 18 | + "tableName": "link", |
| 19 | + "fields": { |
| 20 | + "id": { |
| 21 | + "name": "id", |
| 22 | + "columnName": "id", |
| 23 | + "columnType": "uuid", |
| 24 | + "nullable": false, |
| 25 | + "type": "Uuid" |
| 26 | + } |
| 27 | + }, |
| 28 | + "unique": {}, |
| 29 | + "indexes": {}, |
| 30 | + "eventLog": { |
| 31 | + "enabled": true |
| 32 | + } |
| 33 | + } |
| 34 | + }, |
| 35 | + { |
| 36 | + "modification": "createColumn", |
| 37 | + "entityName": "Link", |
| 38 | + "field": { |
| 39 | + "name": "type", |
| 40 | + "columnName": "type", |
| 41 | + "columnType": "LinkType", |
| 42 | + "nullable": false, |
| 43 | + "type": "Enum" |
| 44 | + } |
| 45 | + }, |
| 46 | + { |
| 47 | + "modification": "createColumn", |
| 48 | + "entityName": "Link", |
| 49 | + "field": { |
| 50 | + "name": "title", |
| 51 | + "columnName": "title", |
| 52 | + "columnType": "text", |
| 53 | + "nullable": true, |
| 54 | + "type": "String" |
| 55 | + } |
| 56 | + }, |
| 57 | + { |
| 58 | + "modification": "createColumn", |
| 59 | + "entityName": "Link", |
| 60 | + "field": { |
| 61 | + "name": "isTargetBlank", |
| 62 | + "columnName": "is_target_blank", |
| 63 | + "columnType": "boolean", |
| 64 | + "nullable": false, |
| 65 | + "type": "Bool", |
| 66 | + "default": false |
| 67 | + }, |
| 68 | + "fillValue": false |
| 69 | + }, |
| 70 | + { |
| 71 | + "modification": "createColumn", |
| 72 | + "entityName": "Link", |
| 73 | + "field": { |
| 74 | + "name": "externalLink", |
| 75 | + "columnName": "external_link", |
| 76 | + "columnType": "text", |
| 77 | + "nullable": true, |
| 78 | + "type": "String" |
| 79 | + } |
| 80 | + }, |
| 81 | + { |
| 82 | + "modification": "createRelation", |
| 83 | + "entityName": "General", |
| 84 | + "owningSide": { |
| 85 | + "type": "OneHasOne", |
| 86 | + "name": "privacyPolicyPage", |
| 87 | + "target": "Link", |
| 88 | + "joiningColumn": { |
| 89 | + "columnName": "privacy_policy_page_id", |
| 90 | + "onDelete": "set null" |
| 91 | + }, |
| 92 | + "nullable": true |
| 93 | + } |
| 94 | + }, |
| 95 | + { |
| 96 | + "modification": "createRelation", |
| 97 | + "entityName": "Link", |
| 98 | + "owningSide": { |
| 99 | + "type": "ManyHasOne", |
| 100 | + "name": "internalLink", |
| 101 | + "target": "Linkable", |
| 102 | + "joiningColumn": { |
| 103 | + "columnName": "internal_link_id", |
| 104 | + "onDelete": "set null" |
| 105 | + }, |
| 106 | + "nullable": true |
| 107 | + } |
| 108 | + }, |
| 109 | + { |
| 110 | + "modification": "patchAclSchema", |
| 111 | + "patch": [ |
| 112 | + { |
| 113 | + "op": "add", |
| 114 | + "path": "/roles/admin/entities/Link", |
| 115 | + "value": { |
| 116 | + "predicates": {}, |
| 117 | + "operations": { |
| 118 | + "read": { |
| 119 | + "id": true, |
| 120 | + "type": true, |
| 121 | + "title": true, |
| 122 | + "isTargetBlank": true, |
| 123 | + "externalLink": true, |
| 124 | + "internalLink": true |
| 125 | + }, |
| 126 | + "create": { |
| 127 | + "id": true, |
| 128 | + "type": true, |
| 129 | + "title": true, |
| 130 | + "isTargetBlank": true, |
| 131 | + "externalLink": true, |
| 132 | + "internalLink": true |
| 133 | + }, |
| 134 | + "update": { |
| 135 | + "id": true, |
| 136 | + "type": true, |
| 137 | + "title": true, |
| 138 | + "isTargetBlank": true, |
| 139 | + "externalLink": true, |
| 140 | + "internalLink": true |
| 141 | + }, |
| 142 | + "delete": true, |
| 143 | + "customPrimary": true |
| 144 | + } |
| 145 | + } |
| 146 | + }, |
| 147 | + { |
| 148 | + "op": "add", |
| 149 | + "path": "/roles/admin/entities/General/operations/read/privacyPolicyPage", |
| 150 | + "value": true |
| 151 | + }, |
| 152 | + { |
| 153 | + "op": "add", |
| 154 | + "path": "/roles/admin/entities/General/operations/create/privacyPolicyPage", |
| 155 | + "value": true |
| 156 | + }, |
| 157 | + { |
| 158 | + "op": "add", |
| 159 | + "path": "/roles/admin/entities/General/operations/update/privacyPolicyPage", |
| 160 | + "value": true |
| 161 | + } |
| 162 | + ] |
| 163 | + } |
| 164 | + ] |
| 165 | +} |
0 commit comments