-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jan Lauber <jan.lauber@protonmail.ch>
- Loading branch information
Showing
10 changed files
with
364 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ node_modules | |
!.env.example | ||
vite.config.js.timestamp-* | ||
vite.config.ts.timestamp-* | ||
.node-red.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
ui/pocketbase/pb_migrations/1701789066_created_manifests.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/// <reference path="../pb_data/types.d.ts" /> | ||
migrate((db) => { | ||
const collection = new Collection({ | ||
"id": "a3bwaaqkbj0nfdu", | ||
"created": "2023-12-05 15:11:06.505Z", | ||
"updated": "2023-12-05 15:11:06.505Z", | ||
"name": "manifests", | ||
"type": "base", | ||
"system": false, | ||
"schema": [ | ||
{ | ||
"system": false, | ||
"id": "qze3nz4j", | ||
"name": "json", | ||
"type": "json", | ||
"required": false, | ||
"presentable": false, | ||
"unique": false, | ||
"options": {} | ||
} | ||
], | ||
"indexes": [], | ||
"listRule": null, | ||
"viewRule": null, | ||
"createRule": null, | ||
"updateRule": null, | ||
"deleteRule": null, | ||
"options": {} | ||
}); | ||
|
||
return Dao(db).saveCollection(collection); | ||
}, (db) => { | ||
const dao = new Dao(db); | ||
const collection = dao.findCollectionByNameOrId("a3bwaaqkbj0nfdu"); | ||
|
||
return dao.deleteCollection(collection); | ||
}) |
33 changes: 33 additions & 0 deletions
33
ui/pocketbase/pb_migrations/1701789139_updated_manifests.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/// <reference path="../pb_data/types.d.ts" /> | ||
migrate((db) => { | ||
const dao = new Dao(db) | ||
const collection = dao.findCollectionByNameOrId("a3bwaaqkbj0nfdu") | ||
|
||
// add | ||
collection.schema.addField(new SchemaField({ | ||
"system": false, | ||
"id": "zrqmwzee", | ||
"name": "rollout", | ||
"type": "relation", | ||
"required": false, | ||
"presentable": false, | ||
"unique": false, | ||
"options": { | ||
"collectionId": "22k6ts6gvnp46mc", | ||
"cascadeDelete": false, | ||
"minSelect": null, | ||
"maxSelect": 1, | ||
"displayFields": null | ||
} | ||
})) | ||
|
||
return dao.saveCollection(collection) | ||
}, (db) => { | ||
const dao = new Dao(db) | ||
const collection = dao.findCollectionByNameOrId("a3bwaaqkbj0nfdu") | ||
|
||
// remove | ||
collection.schema.removeField("zrqmwzee") | ||
|
||
return dao.saveCollection(collection) | ||
}) |
87 changes: 87 additions & 0 deletions
87
ui/pocketbase/pb_migrations/1701789200_updated_manifests.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
/// <reference path="../pb_data/types.d.ts" /> | ||
migrate((db) => { | ||
const dao = new Dao(db) | ||
const collection = dao.findCollectionByNameOrId("a3bwaaqkbj0nfdu") | ||
|
||
// add | ||
collection.schema.addField(new SchemaField({ | ||
"system": false, | ||
"id": "e70d5dls", | ||
"name": "active", | ||
"type": "bool", | ||
"required": false, | ||
"presentable": false, | ||
"unique": false, | ||
"options": {} | ||
})) | ||
|
||
// update | ||
collection.schema.addField(new SchemaField({ | ||
"system": false, | ||
"id": "zrqmwzee", | ||
"name": "rollout", | ||
"type": "relation", | ||
"required": true, | ||
"presentable": false, | ||
"unique": false, | ||
"options": { | ||
"collectionId": "22k6ts6gvnp46mc", | ||
"cascadeDelete": false, | ||
"minSelect": null, | ||
"maxSelect": 1, | ||
"displayFields": null | ||
} | ||
})) | ||
|
||
// update | ||
collection.schema.addField(new SchemaField({ | ||
"system": false, | ||
"id": "qze3nz4j", | ||
"name": "json", | ||
"type": "json", | ||
"required": true, | ||
"presentable": false, | ||
"unique": false, | ||
"options": {} | ||
})) | ||
|
||
return dao.saveCollection(collection) | ||
}, (db) => { | ||
const dao = new Dao(db) | ||
const collection = dao.findCollectionByNameOrId("a3bwaaqkbj0nfdu") | ||
|
||
// remove | ||
collection.schema.removeField("e70d5dls") | ||
|
||
// update | ||
collection.schema.addField(new SchemaField({ | ||
"system": false, | ||
"id": "zrqmwzee", | ||
"name": "rollout", | ||
"type": "relation", | ||
"required": false, | ||
"presentable": false, | ||
"unique": false, | ||
"options": { | ||
"collectionId": "22k6ts6gvnp46mc", | ||
"cascadeDelete": false, | ||
"minSelect": null, | ||
"maxSelect": 1, | ||
"displayFields": null | ||
} | ||
})) | ||
|
||
// update | ||
collection.schema.addField(new SchemaField({ | ||
"system": false, | ||
"id": "qze3nz4j", | ||
"name": "json", | ||
"type": "json", | ||
"required": false, | ||
"presentable": false, | ||
"unique": false, | ||
"options": {} | ||
})) | ||
|
||
return dao.saveCollection(collection) | ||
}) |
63 changes: 63 additions & 0 deletions
63
ui/pocketbase/pb_migrations/1701789274_updated_manifests.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
/// <reference path="../pb_data/types.d.ts" /> | ||
migrate((db) => { | ||
const dao = new Dao(db) | ||
const collection = dao.findCollectionByNameOrId("a3bwaaqkbj0nfdu") | ||
|
||
// remove | ||
collection.schema.removeField("e70d5dls") | ||
|
||
// add | ||
collection.schema.addField(new SchemaField({ | ||
"system": false, | ||
"id": "nrwdaqpz", | ||
"name": "startDate", | ||
"type": "date", | ||
"required": true, | ||
"presentable": false, | ||
"unique": false, | ||
"options": { | ||
"min": "", | ||
"max": "" | ||
} | ||
})) | ||
|
||
// add | ||
collection.schema.addField(new SchemaField({ | ||
"system": false, | ||
"id": "grnqhwti", | ||
"name": "endDate", | ||
"type": "date", | ||
"required": false, | ||
"presentable": false, | ||
"unique": false, | ||
"options": { | ||
"min": "", | ||
"max": "" | ||
} | ||
})) | ||
|
||
return dao.saveCollection(collection) | ||
}, (db) => { | ||
const dao = new Dao(db) | ||
const collection = dao.findCollectionByNameOrId("a3bwaaqkbj0nfdu") | ||
|
||
// add | ||
collection.schema.addField(new SchemaField({ | ||
"system": false, | ||
"id": "e70d5dls", | ||
"name": "active", | ||
"type": "bool", | ||
"required": false, | ||
"presentable": false, | ||
"unique": false, | ||
"options": {} | ||
})) | ||
|
||
// remove | ||
collection.schema.removeField("nrwdaqpz") | ||
|
||
// remove | ||
collection.schema.removeField("grnqhwti") | ||
|
||
return dao.saveCollection(collection) | ||
}) |
79 changes: 79 additions & 0 deletions
79
ui/pocketbase/pb_migrations/1701789313_deleted_manifests.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
/// <reference path="../pb_data/types.d.ts" /> | ||
migrate((db) => { | ||
const dao = new Dao(db); | ||
const collection = dao.findCollectionByNameOrId("a3bwaaqkbj0nfdu"); | ||
|
||
return dao.deleteCollection(collection); | ||
}, (db) => { | ||
const collection = new Collection({ | ||
"id": "a3bwaaqkbj0nfdu", | ||
"created": "2023-12-05 15:11:06.505Z", | ||
"updated": "2023-12-05 15:14:34.816Z", | ||
"name": "manifests", | ||
"type": "base", | ||
"system": false, | ||
"schema": [ | ||
{ | ||
"system": false, | ||
"id": "zrqmwzee", | ||
"name": "rollout", | ||
"type": "relation", | ||
"required": true, | ||
"presentable": false, | ||
"unique": false, | ||
"options": { | ||
"collectionId": "22k6ts6gvnp46mc", | ||
"cascadeDelete": false, | ||
"minSelect": null, | ||
"maxSelect": 1, | ||
"displayFields": null | ||
} | ||
}, | ||
{ | ||
"system": false, | ||
"id": "qze3nz4j", | ||
"name": "json", | ||
"type": "json", | ||
"required": true, | ||
"presentable": false, | ||
"unique": false, | ||
"options": {} | ||
}, | ||
{ | ||
"system": false, | ||
"id": "nrwdaqpz", | ||
"name": "startDate", | ||
"type": "date", | ||
"required": true, | ||
"presentable": false, | ||
"unique": false, | ||
"options": { | ||
"min": "", | ||
"max": "" | ||
} | ||
}, | ||
{ | ||
"system": false, | ||
"id": "grnqhwti", | ||
"name": "endDate", | ||
"type": "date", | ||
"required": false, | ||
"presentable": false, | ||
"unique": false, | ||
"options": { | ||
"min": "", | ||
"max": "" | ||
} | ||
} | ||
], | ||
"indexes": [], | ||
"listRule": null, | ||
"viewRule": null, | ||
"createRule": null, | ||
"updateRule": null, | ||
"deleteRule": null, | ||
"options": {} | ||
}); | ||
|
||
return Dao(db).saveCollection(collection); | ||
}) |
Oops, something went wrong.