diff --git a/002_source/pocketbase/pb_migrations/1744745581_updated_t1.js b/002_source/pocketbase/pb_migrations/1744745581_updated_t1.js deleted file mode 100644 index 95e43a8..0000000 --- a/002_source/pocketbase/pb_migrations/1744745581_updated_t1.js +++ /dev/null @@ -1,28 +0,0 @@ -/// -migrate((app) => { - const collection = app.findCollectionByNameOrId("pbc_2109205374") - - // update collection data - unmarshal({ - "createRule": "", - "deleteRule": "", - "listRule": "", - "updateRule": "", - "viewRule": "" - }, collection) - - return app.save(collection) -}, (app) => { - const collection = app.findCollectionByNameOrId("pbc_2109205374") - - // update collection data - unmarshal({ - "createRule": null, - "deleteRule": null, - "listRule": null, - "updateRule": null, - "viewRule": null - }, collection) - - return app.save(collection) -}) diff --git a/002_source/pocketbase/pb_migrations/1744922181_updated_UserMetas.js b/002_source/pocketbase/pb_migrations/1744922181_updated_UserMetas.js deleted file mode 100644 index 155c9cb..0000000 --- a/002_source/pocketbase/pb_migrations/1744922181_updated_UserMetas.js +++ /dev/null @@ -1,42 +0,0 @@ -/// -migrate((app) => { - const collection = app.findCollectionByNameOrId("pbc_1305841361") - - // update field - collection.fields.addAt(1, new Field({ - "autogeneratePattern": "", - "hidden": false, - "id": "text4192936109", - "max": 0, - "min": 0, - "name": "address", - "pattern": "", - "presentable": false, - "primaryKey": false, - "required": false, - "system": false, - "type": "text" - })) - - return app.save(collection) -}, (app) => { - const collection = app.findCollectionByNameOrId("pbc_1305841361") - - // update field - collection.fields.addAt(1, new Field({ - "autogeneratePattern": "", - "hidden": false, - "id": "text4192936109", - "max": 0, - "min": 0, - "name": "helloworld", - "pattern": "", - "presentable": false, - "primaryKey": false, - "required": false, - "system": false, - "type": "text" - })) - - return app.save(collection) -}) diff --git a/002_source/pocketbase/pb_migrations/1744990620_updated_UserMetas.js b/002_source/pocketbase/pb_migrations/1744990620_updated_UserMetas.js deleted file mode 100644 index 4bcadad..0000000 --- a/002_source/pocketbase/pb_migrations/1744990620_updated_UserMetas.js +++ /dev/null @@ -1,26 +0,0 @@ -/// -migrate((app) => { - const collection = app.findCollectionByNameOrId("pbc_1305841361") - - // update collection data - unmarshal({ - "createRule": "", - "listRule": "", - "updateRule": "", - "viewRule": "" - }, collection) - - return app.save(collection) -}, (app) => { - const collection = app.findCollectionByNameOrId("pbc_1305841361") - - // update collection data - unmarshal({ - "createRule": null, - "listRule": null, - "updateRule": null, - "viewRule": null - }, collection) - - return app.save(collection) -}) diff --git a/002_source/pocketbase/pb_migrations/1744990769_updated_UserMetas.js b/002_source/pocketbase/pb_migrations/1744990769_updated_UserMetas.js deleted file mode 100644 index 096dc36..0000000 --- a/002_source/pocketbase/pb_migrations/1744990769_updated_UserMetas.js +++ /dev/null @@ -1,28 +0,0 @@ -/// -migrate((app) => { - const collection = app.findCollectionByNameOrId("pbc_1305841361") - - // update collection data - unmarshal({ - "createRule": "", - "deleteRule": "", - "listRule": "", - "updateRule": "", - "viewRule": "" - }, collection) - - return app.save(collection) -}, (app) => { - const collection = app.findCollectionByNameOrId("pbc_1305841361") - - // update collection data - unmarshal({ - "createRule": null, - "deleteRule": null, - "listRule": null, - "updateRule": null, - "viewRule": null - }, collection) - - return app.save(collection) -}) diff --git a/002_source/pocketbase/pb_migrations/1745000156_updated_UserMetas.js b/002_source/pocketbase/pb_migrations/1745000156_updated_UserMetas.js deleted file mode 100644 index 1f78b24..0000000 --- a/002_source/pocketbase/pb_migrations/1745000156_updated_UserMetas.js +++ /dev/null @@ -1,29 +0,0 @@ -/// -migrate((app) => { - const collection = app.findCollectionByNameOrId("pbc_1305841361") - - // add field - collection.fields.addAt(7, new Field({ - "hidden": false, - "id": "file376926767", - "maxSelect": 1, - "maxSize": 0, - "mimeTypes": [], - "name": "avatar", - "presentable": false, - "protected": false, - "required": false, - "system": false, - "thumbs": [], - "type": "file" - })) - - return app.save(collection) -}, (app) => { - const collection = app.findCollectionByNameOrId("pbc_1305841361") - - // remove field - collection.fields.removeById("file376926767") - - return app.save(collection) -}) diff --git a/002_source/pocketbase/pb_migrations/1745000989_updated_UserMetas.js b/002_source/pocketbase/pb_migrations/1745000989_updated_UserMetas.js deleted file mode 100644 index 85048af..0000000 --- a/002_source/pocketbase/pb_migrations/1745000989_updated_UserMetas.js +++ /dev/null @@ -1,29 +0,0 @@ -/// -migrate((app) => { - const collection = app.findCollectionByNameOrId("pbc_1305841361") - - // add field - collection.fields.addAt(8, new Field({ - "autogeneratePattern": "", - "hidden": false, - "id": "text1466534506", - "max": 0, - "min": 0, - "name": "role", - "pattern": "", - "presentable": false, - "primaryKey": false, - "required": false, - "system": false, - "type": "text" - })) - - return app.save(collection) -}, (app) => { - const collection = app.findCollectionByNameOrId("pbc_1305841361") - - // remove field - collection.fields.removeById("text1466534506") - - return app.save(collection) -}) diff --git a/002_source/pocketbase/pb_migrations/1745047253_updated_QuizLPCategories.js b/002_source/pocketbase/pb_migrations/1745047253_updated_QuizLPCategories.js deleted file mode 100644 index 90cde30..0000000 --- a/002_source/pocketbase/pb_migrations/1745047253_updated_QuizLPCategories.js +++ /dev/null @@ -1,29 +0,0 @@ -/// -migrate((app) => { - const collection = app.findCollectionByNameOrId("pbc_3639453778") - - // add field - collection.fields.addAt(5, new Field({ - "autogeneratePattern": "", - "hidden": false, - "id": "text2058414169", - "max": 0, - "min": 0, - "name": "visible", - "pattern": "", - "presentable": false, - "primaryKey": false, - "required": false, - "system": false, - "type": "text" - })) - - return app.save(collection) -}, (app) => { - const collection = app.findCollectionByNameOrId("pbc_3639453778") - - // remove field - collection.fields.removeById("text2058414169") - - return app.save(collection) -}) diff --git a/002_source/pocketbase/pb_migrations/1745093148_updated_QuizLPCategories.js b/002_source/pocketbase/pb_migrations/1745093148_updated_QuizLPCategories.js deleted file mode 100644 index b5d897e..0000000 --- a/002_source/pocketbase/pb_migrations/1745093148_updated_QuizLPCategories.js +++ /dev/null @@ -1,29 +0,0 @@ -/// -migrate((app) => { - const collection = app.findCollectionByNameOrId("pbc_3639453778") - - // add field - collection.fields.addAt(8, new Field({ - "autogeneratePattern": "", - "hidden": false, - "id": "text2560465762", - "max": 0, - "min": 0, - "name": "slug", - "pattern": "", - "presentable": false, - "primaryKey": false, - "required": false, - "system": false, - "type": "text" - })) - - return app.save(collection) -}, (app) => { - const collection = app.findCollectionByNameOrId("pbc_3639453778") - - // remove field - collection.fields.removeById("text2560465762") - - return app.save(collection) -}) diff --git a/002_source/pocketbase/pb_migrations/1745143917_updated_UserMetas.js b/002_source/pocketbase/pb_migrations/1745143917_updated_UserMetas.js deleted file mode 100644 index 096dc36..0000000 --- a/002_source/pocketbase/pb_migrations/1745143917_updated_UserMetas.js +++ /dev/null @@ -1,28 +0,0 @@ -/// -migrate((app) => { - const collection = app.findCollectionByNameOrId("pbc_1305841361") - - // update collection data - unmarshal({ - "createRule": "", - "deleteRule": "", - "listRule": "", - "updateRule": "", - "viewRule": "" - }, collection) - - return app.save(collection) -}, (app) => { - const collection = app.findCollectionByNameOrId("pbc_1305841361") - - // update collection data - unmarshal({ - "createRule": null, - "deleteRule": null, - "listRule": null, - "updateRule": null, - "viewRule": null - }, collection) - - return app.save(collection) -}) diff --git a/002_source/pocketbase/pb_migrations/1745188429_updated_QuizMFCategories.js b/002_source/pocketbase/pb_migrations/1745188429_updated_QuizMFCategories.js deleted file mode 100644 index 8d9b68a..0000000 --- a/002_source/pocketbase/pb_migrations/1745188429_updated_QuizMFCategories.js +++ /dev/null @@ -1,29 +0,0 @@ -/// -migrate((app) => { - const collection = app.findCollectionByNameOrId("pbc_84667061") - - // add field - collection.fields.addAt(5, new Field({ - "autogeneratePattern": "", - "hidden": false, - "id": "text2058414169", - "max": 0, - "min": 0, - "name": "visible", - "pattern": "", - "presentable": false, - "primaryKey": false, - "required": false, - "system": false, - "type": "text" - })) - - return app.save(collection) -}, (app) => { - const collection = app.findCollectionByNameOrId("pbc_84667061") - - // remove field - collection.fields.removeById("text2058414169") - - return app.save(collection) -}) diff --git a/002_source/pocketbase/pb_migrations/1745198654_updated_QuizLPQuestions.js b/002_source/pocketbase/pb_migrations/1745198654_updated_QuizLPQuestions.js deleted file mode 100644 index 58606b3..0000000 --- a/002_source/pocketbase/pb_migrations/1745198654_updated_QuizLPQuestions.js +++ /dev/null @@ -1,153 +0,0 @@ -/// -migrate((app) => { - const collection = app.findCollectionByNameOrId("pbc_742947356") - - // add field - collection.fields.addAt(4, new Field({ - "autogeneratePattern": "", - "hidden": false, - "id": "text1125157303", - "max": 0, - "min": 0, - "name": "cat_name", - "pattern": "", - "presentable": false, - "primaryKey": false, - "required": false, - "system": false, - "type": "text" - })) - - // add field - collection.fields.addAt(5, new Field({ - "hidden": false, - "id": "file2034676914", - "maxSelect": 1, - "maxSize": 0, - "mimeTypes": [], - "name": "cat_image", - "presentable": false, - "protected": false, - "required": false, - "system": false, - "thumbs": [], - "type": "file" - })) - - // add field - collection.fields.addAt(6, new Field({ - "hidden": false, - "id": "number2161764012", - "max": null, - "min": null, - "name": "pos", - "onlyInt": false, - "presentable": false, - "required": false, - "system": false, - "type": "number" - })) - - // add field - collection.fields.addAt(7, new Field({ - "hidden": false, - "id": "json3915970527", - "maxSize": 0, - "name": "init_answer", - "presentable": false, - "required": false, - "system": false, - "type": "json" - })) - - // add field - collection.fields.addAt(8, new Field({ - "autogeneratePattern": "", - "hidden": false, - "id": "text2058414169", - "max": 0, - "min": 0, - "name": "visible", - "pattern": "", - "presentable": false, - "primaryKey": false, - "required": false, - "system": false, - "type": "text" - })) - - // add field - collection.fields.addAt(9, new Field({ - "autogeneratePattern": "", - "hidden": false, - "id": "text2560465762", - "max": 0, - "min": 0, - "name": "slug", - "pattern": "", - "presentable": false, - "primaryKey": false, - "required": false, - "system": false, - "type": "text" - })) - - // add field - collection.fields.addAt(10, new Field({ - "autogeneratePattern": "", - "hidden": false, - "id": "text1156222427", - "max": 0, - "min": 0, - "name": "remarks", - "pattern": "", - "presentable": false, - "primaryKey": false, - "required": false, - "system": false, - "type": "text" - })) - - // add field - collection.fields.addAt(11, new Field({ - "convertURLs": false, - "hidden": false, - "id": "editor1843675174", - "maxSize": 0, - "name": "description", - "presentable": false, - "required": false, - "system": false, - "type": "editor" - })) - - return app.save(collection) -}, (app) => { - const collection = app.findCollectionByNameOrId("pbc_742947356") - - // remove field - collection.fields.removeById("text1125157303") - - // remove field - collection.fields.removeById("file2034676914") - - // remove field - collection.fields.removeById("number2161764012") - - // remove field - collection.fields.removeById("json3915970527") - - // remove field - collection.fields.removeById("text2058414169") - - // remove field - collection.fields.removeById("text2560465762") - - // remove field - collection.fields.removeById("text1156222427") - - // remove field - collection.fields.removeById("editor1843675174") - - return app.save(collection) -}) diff --git a/002_source/pocketbase/pb_migrations/1745241212_updated_UserMetas.js b/002_source/pocketbase/pb_migrations/1745241212_updated_UserMetas.js deleted file mode 100644 index 096dc36..0000000 --- a/002_source/pocketbase/pb_migrations/1745241212_updated_UserMetas.js +++ /dev/null @@ -1,28 +0,0 @@ -/// -migrate((app) => { - const collection = app.findCollectionByNameOrId("pbc_1305841361") - - // update collection data - unmarshal({ - "createRule": "", - "deleteRule": "", - "listRule": "", - "updateRule": "", - "viewRule": "" - }, collection) - - return app.save(collection) -}, (app) => { - const collection = app.findCollectionByNameOrId("pbc_1305841361") - - // update collection data - unmarshal({ - "createRule": null, - "deleteRule": null, - "listRule": null, - "updateRule": null, - "viewRule": null - }, collection) - - return app.save(collection) -}) diff --git a/002_source/pocketbase/pb_migrations/1745293175_updated_UserMetas.js b/002_source/pocketbase/pb_migrations/1745293175_updated_UserMetas.js deleted file mode 100644 index 096dc36..0000000 --- a/002_source/pocketbase/pb_migrations/1745293175_updated_UserMetas.js +++ /dev/null @@ -1,28 +0,0 @@ -/// -migrate((app) => { - const collection = app.findCollectionByNameOrId("pbc_1305841361") - - // update collection data - unmarshal({ - "createRule": "", - "deleteRule": "", - "listRule": "", - "updateRule": "", - "viewRule": "" - }, collection) - - return app.save(collection) -}, (app) => { - const collection = app.findCollectionByNameOrId("pbc_1305841361") - - // update collection data - unmarshal({ - "createRule": null, - "deleteRule": null, - "listRule": null, - "updateRule": null, - "viewRule": null - }, collection) - - return app.save(collection) -}) diff --git a/002_source/pocketbase/pb_migrations/1745294961_updated_QuizMFQuestions.js b/002_source/pocketbase/pb_migrations/1745294961_updated_QuizMFQuestions.js deleted file mode 100644 index aa13253..0000000 --- a/002_source/pocketbase/pb_migrations/1745294961_updated_QuizMFQuestions.js +++ /dev/null @@ -1,29 +0,0 @@ -/// -migrate((app) => { - const collection = app.findCollectionByNameOrId("pbc_3346420851") - - // add field - collection.fields.addAt(4, new Field({ - "autogeneratePattern": "", - "hidden": false, - "id": "text2058414169", - "max": 0, - "min": 0, - "name": "visible", - "pattern": "", - "presentable": false, - "primaryKey": false, - "required": false, - "system": false, - "type": "text" - })) - - return app.save(collection) -}, (app) => { - const collection = app.findCollectionByNameOrId("pbc_3346420851") - - // remove field - collection.fields.removeById("text2058414169") - - return app.save(collection) -}) diff --git a/002_source/pocketbase/pb_migrations/1745295287_updated_QuizMFQuestions.js b/002_source/pocketbase/pb_migrations/1745295287_updated_QuizMFQuestions.js deleted file mode 100644 index 44eab74..0000000 --- a/002_source/pocketbase/pb_migrations/1745295287_updated_QuizMFQuestions.js +++ /dev/null @@ -1,48 +0,0 @@ -/// -migrate((app) => { - const collection = app.findCollectionByNameOrId("pbc_3346420851") - - // add field - collection.fields.addAt(7, new Field({ - "hidden": false, - "id": "file4170105732", - "maxSelect": 1, - "maxSize": 0, - "mimeTypes": [], - "name": "sound", - "presentable": false, - "protected": false, - "required": false, - "system": false, - "thumbs": [], - "type": "file" - })) - - // add field - collection.fields.addAt(8, new Field({ - "hidden": false, - "id": "file2034676914", - "maxSelect": 1, - "maxSize": 0, - "mimeTypes": [], - "name": "cat_image", - "presentable": false, - "protected": false, - "required": false, - "system": false, - "thumbs": [], - "type": "file" - })) - - return app.save(collection) -}, (app) => { - const collection = app.findCollectionByNameOrId("pbc_3346420851") - - // remove field - collection.fields.removeById("file4170105732") - - // remove field - collection.fields.removeById("file2034676914") - - return app.save(collection) -}) diff --git a/002_source/pocketbase/pb_migrations/1745319575_created_customers.js b/002_source/pocketbase/pb_migrations/1745319575_created_customers.js deleted file mode 100644 index c00ff98..0000000 --- a/002_source/pocketbase/pb_migrations/1745319575_created_customers.js +++ /dev/null @@ -1,57 +0,0 @@ -/// -migrate((app) => { - const collection = new Collection({ - "createRule": null, - "deleteRule": null, - "fields": [ - { - "autogeneratePattern": "[a-z0-9]{15}", - "hidden": false, - "id": "text3208210256", - "max": 15, - "min": 15, - "name": "id", - "pattern": "^[a-z0-9]+$", - "presentable": false, - "primaryKey": true, - "required": true, - "system": true, - "type": "text" - }, - { - "hidden": false, - "id": "autodate2990389176", - "name": "created", - "onCreate": true, - "onUpdate": false, - "presentable": false, - "system": false, - "type": "autodate" - }, - { - "hidden": false, - "id": "autodate3332085495", - "name": "updated", - "onCreate": true, - "onUpdate": true, - "presentable": false, - "system": false, - "type": "autodate" - } - ], - "id": "pbc_108570809", - "indexes": [], - "listRule": null, - "name": "customers", - "system": false, - "type": "base", - "updateRule": null, - "viewRule": null - }); - - return app.save(collection); -}, (app) => { - const collection = app.findCollectionByNameOrId("pbc_108570809"); - - return app.delete(collection); -}) diff --git a/002_source/pocketbase/pb_migrations/1745319595_updated_customers.js b/002_source/pocketbase/pb_migrations/1745319595_updated_customers.js deleted file mode 100644 index 6f250e5..0000000 --- a/002_source/pocketbase/pb_migrations/1745319595_updated_customers.js +++ /dev/null @@ -1,28 +0,0 @@ -/// -migrate((app) => { - const collection = app.findCollectionByNameOrId("pbc_108570809") - - // update collection data - unmarshal({ - "createRule": "", - "deleteRule": "", - "listRule": "", - "updateRule": "", - "viewRule": "" - }, collection) - - return app.save(collection) -}, (app) => { - const collection = app.findCollectionByNameOrId("pbc_108570809") - - // update collection data - unmarshal({ - "createRule": null, - "deleteRule": null, - "listRule": null, - "updateRule": null, - "viewRule": null - }, collection) - - return app.save(collection) -}) diff --git a/002_source/pocketbase/pb_migrations/1745319727_updated_customers.js b/002_source/pocketbase/pb_migrations/1745319727_updated_customers.js deleted file mode 100644 index 1583edc..0000000 --- a/002_source/pocketbase/pb_migrations/1745319727_updated_customers.js +++ /dev/null @@ -1,122 +0,0 @@ -/// -migrate((app) => { - const collection = app.findCollectionByNameOrId("pbc_108570809") - - // add field - collection.fields.addAt(1, new Field({ - "autogeneratePattern": "", - "hidden": false, - "id": "text1579384326", - "max": 0, - "min": 0, - "name": "name", - "pattern": "", - "presentable": false, - "primaryKey": false, - "required": false, - "system": false, - "type": "text" - })) - - // add field - collection.fields.addAt(2, new Field({ - "autogeneratePattern": "", - "hidden": false, - "id": "text3885137012", - "max": 0, - "min": 0, - "name": "email", - "pattern": "", - "presentable": false, - "primaryKey": false, - "required": false, - "system": false, - "type": "text" - })) - - // add field - collection.fields.addAt(3, new Field({ - "autogeneratePattern": "", - "hidden": false, - "id": "text1146066909", - "max": 0, - "min": 0, - "name": "phone", - "pattern": "", - "presentable": false, - "primaryKey": false, - "required": false, - "system": false, - "type": "text" - })) - - // add field - collection.fields.addAt(4, new Field({ - "hidden": false, - "id": "number1813778413", - "max": null, - "min": null, - "name": "quota", - "onlyInt": false, - "presentable": false, - "required": false, - "system": false, - "type": "number" - })) - - // add field - collection.fields.addAt(5, new Field({ - "autogeneratePattern": "", - "hidden": false, - "id": "text2063623452", - "max": 0, - "min": 0, - "name": "status", - "pattern": "", - "presentable": false, - "primaryKey": false, - "required": false, - "system": false, - "type": "text" - })) - - // add field - collection.fields.addAt(6, new Field({ - "hidden": false, - "id": "file507207115", - "maxSelect": 1, - "maxSize": 0, - "mimeTypes": [], - "name": "avatar_file", - "presentable": false, - "protected": false, - "required": false, - "system": false, - "thumbs": [], - "type": "file" - })) - - return app.save(collection) -}, (app) => { - const collection = app.findCollectionByNameOrId("pbc_108570809") - - // remove field - collection.fields.removeById("text1579384326") - - // remove field - collection.fields.removeById("text3885137012") - - // remove field - collection.fields.removeById("text1146066909") - - // remove field - collection.fields.removeById("number1813778413") - - // remove field - collection.fields.removeById("text2063623452") - - // remove field - collection.fields.removeById("file507207115") - - return app.save(collection) -}) diff --git a/002_source/pocketbase/pb_migrations/1745325500_updated_Customers.js b/002_source/pocketbase/pb_migrations/1745325500_updated_Customers.js deleted file mode 100644 index ecd2ffd..0000000 --- a/002_source/pocketbase/pb_migrations/1745325500_updated_Customers.js +++ /dev/null @@ -1,28 +0,0 @@ -/// -migrate((app) => { - const collection = app.findCollectionByNameOrId("pbc_108570809") - - // add field - collection.fields.addAt(7, new Field({ - "cascadeDelete": false, - "collectionId": "_pb_users_auth_", - "hidden": false, - "id": "relation2809058197", - "maxSelect": 1, - "minSelect": 0, - "name": "user_id", - "presentable": false, - "required": false, - "system": false, - "type": "relation" - })) - - return app.save(collection) -}, (app) => { - const collection = app.findCollectionByNameOrId("pbc_108570809") - - // remove field - collection.fields.removeById("relation2809058197") - - return app.save(collection) -}) diff --git a/002_source/pocketbase/pb_migrations/1745336794_updated_users.js b/002_source/pocketbase/pb_migrations/1745336794_updated_users.js deleted file mode 100644 index 6a61283..0000000 --- a/002_source/pocketbase/pb_migrations/1745336794_updated_users.js +++ /dev/null @@ -1,25 +0,0 @@ -/// -migrate((app) => { - const collection = app.findCollectionByNameOrId("_pb_users_auth_") - - // remove field - collection.fields.removeById("json2115670734") - - return app.save(collection) -}, (app) => { - const collection = app.findCollectionByNameOrId("_pb_users_auth_") - - // add field - collection.fields.addAt(8, new Field({ - "hidden": false, - "id": "json2115670734", - "maxSize": 0, - "name": "billingAddress", - "presentable": false, - "required": false, - "system": false, - "type": "json" - })) - - return app.save(collection) -}) diff --git a/002_source/pocketbase/pb_migrations/1745336809_updated_Customers.js b/002_source/pocketbase/pb_migrations/1745336809_updated_Customers.js deleted file mode 100644 index a6d48a4..0000000 --- a/002_source/pocketbase/pb_migrations/1745336809_updated_Customers.js +++ /dev/null @@ -1,25 +0,0 @@ -/// -migrate((app) => { - const collection = app.findCollectionByNameOrId("pbc_108570809") - - // add field - collection.fields.addAt(8, new Field({ - "hidden": false, - "id": "json2115670734", - "maxSize": 0, - "name": "billingAddress", - "presentable": false, - "required": false, - "system": false, - "type": "json" - })) - - return app.save(collection) -}, (app) => { - const collection = app.findCollectionByNameOrId("pbc_108570809") - - // remove field - collection.fields.removeById("json2115670734") - - return app.save(collection) -}) diff --git a/002_source/pocketbase/pb_migrations/1745340777_updated_Customers.js b/002_source/pocketbase/pb_migrations/1745340777_updated_Customers.js deleted file mode 100644 index 2c44780..0000000 --- a/002_source/pocketbase/pb_migrations/1745340777_updated_Customers.js +++ /dev/null @@ -1,29 +0,0 @@ -/// -migrate((app) => { - const collection = app.findCollectionByNameOrId("pbc_108570809") - - // add field - collection.fields.addAt(9, new Field({ - "autogeneratePattern": "", - "hidden": false, - "id": "text922858135", - "max": 0, - "min": 0, - "name": "timezone", - "pattern": "", - "presentable": false, - "primaryKey": false, - "required": false, - "system": false, - "type": "text" - })) - - return app.save(collection) -}, (app) => { - const collection = app.findCollectionByNameOrId("pbc_108570809") - - // remove field - collection.fields.removeById("text922858135") - - return app.save(collection) -}) diff --git a/002_source/pocketbase/pb_migrations/1745340821_updated_Customers.js b/002_source/pocketbase/pb_migrations/1745340821_updated_Customers.js deleted file mode 100644 index 5ea8959..0000000 --- a/002_source/pocketbase/pb_migrations/1745340821_updated_Customers.js +++ /dev/null @@ -1,48 +0,0 @@ -/// -migrate((app) => { - const collection = app.findCollectionByNameOrId("pbc_108570809") - - // add field - collection.fields.addAt(10, new Field({ - "autogeneratePattern": "", - "hidden": false, - "id": "text3571151285", - "max": 0, - "min": 0, - "name": "language", - "pattern": "", - "presentable": false, - "primaryKey": false, - "required": false, - "system": false, - "type": "text" - })) - - // add field - collection.fields.addAt(11, new Field({ - "autogeneratePattern": "", - "hidden": false, - "id": "text1767278655", - "max": 0, - "min": 0, - "name": "currency", - "pattern": "", - "presentable": false, - "primaryKey": false, - "required": false, - "system": false, - "type": "text" - })) - - return app.save(collection) -}, (app) => { - const collection = app.findCollectionByNameOrId("pbc_108570809") - - // remove field - collection.fields.removeById("text3571151285") - - // remove field - collection.fields.removeById("text1767278655") - - return app.save(collection) -}) diff --git a/002_source/pocketbase/pb_migrations/1745462325_created_Teachers.js b/002_source/pocketbase/pb_migrations/1745462325_created_Teachers.js deleted file mode 100644 index df56719..0000000 --- a/002_source/pocketbase/pb_migrations/1745462325_created_Teachers.js +++ /dev/null @@ -1,204 +0,0 @@ -/// -migrate((app) => { - const collection = new Collection({ - "createRule": "", - "deleteRule": "", - "fields": [ - { - "autogeneratePattern": "[a-z0-9]{15}", - "hidden": false, - "id": "text3208210256", - "max": 15, - "min": 15, - "name": "id", - "pattern": "^[a-z0-9]+$", - "presentable": false, - "primaryKey": true, - "required": true, - "system": true, - "type": "text" - }, - { - "autogeneratePattern": "", - "hidden": false, - "id": "text1579384326", - "max": 0, - "min": 0, - "name": "name", - "pattern": "", - "presentable": false, - "primaryKey": false, - "required": false, - "system": false, - "type": "text" - }, - { - "autogeneratePattern": "", - "hidden": false, - "id": "text3885137012", - "max": 0, - "min": 0, - "name": "email", - "pattern": "", - "presentable": false, - "primaryKey": false, - "required": false, - "system": false, - "type": "text" - }, - { - "autogeneratePattern": "", - "hidden": false, - "id": "text1146066909", - "max": 0, - "min": 0, - "name": "phone", - "pattern": "", - "presentable": false, - "primaryKey": false, - "required": false, - "system": false, - "type": "text" - }, - { - "hidden": false, - "id": "number1813778413", - "max": null, - "min": null, - "name": "quota", - "onlyInt": false, - "presentable": false, - "required": false, - "system": false, - "type": "number" - }, - { - "autogeneratePattern": "", - "hidden": false, - "id": "text2063623452", - "max": 0, - "min": 0, - "name": "status", - "pattern": "", - "presentable": false, - "primaryKey": false, - "required": false, - "system": false, - "type": "text" - }, - { - "hidden": false, - "id": "file507207115", - "maxSelect": 1, - "maxSize": 0, - "mimeTypes": [], - "name": "avatar_file", - "presentable": false, - "protected": false, - "required": false, - "system": false, - "thumbs": [], - "type": "file" - }, - { - "cascadeDelete": false, - "collectionId": "_pb_users_auth_", - "hidden": false, - "id": "relation2809058197", - "maxSelect": 1, - "minSelect": 0, - "name": "user_id", - "presentable": false, - "required": false, - "system": false, - "type": "relation" - }, - { - "hidden": false, - "id": "json2115670734", - "maxSize": 0, - "name": "billingAddress", - "presentable": false, - "required": false, - "system": false, - "type": "json" - }, - { - "autogeneratePattern": "", - "hidden": false, - "id": "text922858135", - "max": 0, - "min": 0, - "name": "timezone", - "pattern": "", - "presentable": false, - "primaryKey": false, - "required": false, - "system": false, - "type": "text" - }, - { - "autogeneratePattern": "", - "hidden": false, - "id": "text3571151285", - "max": 0, - "min": 0, - "name": "language", - "pattern": "", - "presentable": false, - "primaryKey": false, - "required": false, - "system": false, - "type": "text" - }, - { - "autogeneratePattern": "", - "hidden": false, - "id": "text1767278655", - "max": 0, - "min": 0, - "name": "currency", - "pattern": "", - "presentable": false, - "primaryKey": false, - "required": false, - "system": false, - "type": "text" - }, - { - "hidden": false, - "id": "autodate2990389176", - "name": "created", - "onCreate": true, - "onUpdate": false, - "presentable": false, - "system": false, - "type": "autodate" - }, - { - "hidden": false, - "id": "autodate3332085495", - "name": "updated", - "onCreate": true, - "onUpdate": true, - "presentable": false, - "system": false, - "type": "autodate" - } - ], - "id": "pbc_1413424569", - "indexes": [], - "listRule": "", - "name": "Teachers", - "system": false, - "type": "base", - "updateRule": "", - "viewRule": "" - }); - - return app.save(collection); -}, (app) => { - const collection = app.findCollectionByNameOrId("pbc_1413424569"); - - return app.delete(collection); -}) diff --git a/002_source/pocketbase/pb_migrations/1745462333_created_Students.js b/002_source/pocketbase/pb_migrations/1745462333_created_Students.js deleted file mode 100644 index e9ec83e..0000000 --- a/002_source/pocketbase/pb_migrations/1745462333_created_Students.js +++ /dev/null @@ -1,204 +0,0 @@ -/// -migrate((app) => { - const collection = new Collection({ - "createRule": "", - "deleteRule": "", - "fields": [ - { - "autogeneratePattern": "[a-z0-9]{15}", - "hidden": false, - "id": "text3208210256", - "max": 15, - "min": 15, - "name": "id", - "pattern": "^[a-z0-9]+$", - "presentable": false, - "primaryKey": true, - "required": true, - "system": true, - "type": "text" - }, - { - "autogeneratePattern": "", - "hidden": false, - "id": "text1579384326", - "max": 0, - "min": 0, - "name": "name", - "pattern": "", - "presentable": false, - "primaryKey": false, - "required": false, - "system": false, - "type": "text" - }, - { - "autogeneratePattern": "", - "hidden": false, - "id": "text3885137012", - "max": 0, - "min": 0, - "name": "email", - "pattern": "", - "presentable": false, - "primaryKey": false, - "required": false, - "system": false, - "type": "text" - }, - { - "autogeneratePattern": "", - "hidden": false, - "id": "text1146066909", - "max": 0, - "min": 0, - "name": "phone", - "pattern": "", - "presentable": false, - "primaryKey": false, - "required": false, - "system": false, - "type": "text" - }, - { - "hidden": false, - "id": "number1813778413", - "max": null, - "min": null, - "name": "quota", - "onlyInt": false, - "presentable": false, - "required": false, - "system": false, - "type": "number" - }, - { - "autogeneratePattern": "", - "hidden": false, - "id": "text2063623452", - "max": 0, - "min": 0, - "name": "status", - "pattern": "", - "presentable": false, - "primaryKey": false, - "required": false, - "system": false, - "type": "text" - }, - { - "hidden": false, - "id": "file507207115", - "maxSelect": 1, - "maxSize": 0, - "mimeTypes": [], - "name": "avatar_file", - "presentable": false, - "protected": false, - "required": false, - "system": false, - "thumbs": [], - "type": "file" - }, - { - "cascadeDelete": false, - "collectionId": "_pb_users_auth_", - "hidden": false, - "id": "relation2809058197", - "maxSelect": 1, - "minSelect": 0, - "name": "user_id", - "presentable": false, - "required": false, - "system": false, - "type": "relation" - }, - { - "hidden": false, - "id": "json2115670734", - "maxSize": 0, - "name": "billingAddress", - "presentable": false, - "required": false, - "system": false, - "type": "json" - }, - { - "autogeneratePattern": "", - "hidden": false, - "id": "text922858135", - "max": 0, - "min": 0, - "name": "timezone", - "pattern": "", - "presentable": false, - "primaryKey": false, - "required": false, - "system": false, - "type": "text" - }, - { - "autogeneratePattern": "", - "hidden": false, - "id": "text3571151285", - "max": 0, - "min": 0, - "name": "language", - "pattern": "", - "presentable": false, - "primaryKey": false, - "required": false, - "system": false, - "type": "text" - }, - { - "autogeneratePattern": "", - "hidden": false, - "id": "text1767278655", - "max": 0, - "min": 0, - "name": "currency", - "pattern": "", - "presentable": false, - "primaryKey": false, - "required": false, - "system": false, - "type": "text" - }, - { - "hidden": false, - "id": "autodate2990389176", - "name": "created", - "onCreate": true, - "onUpdate": false, - "presentable": false, - "system": false, - "type": "autodate" - }, - { - "hidden": false, - "id": "autodate3332085495", - "name": "updated", - "onCreate": true, - "onUpdate": true, - "presentable": false, - "system": false, - "type": "autodate" - } - ], - "id": "pbc_491894781", - "indexes": [], - "listRule": "", - "name": "Students", - "system": false, - "type": "base", - "updateRule": "", - "viewRule": "" - }); - - return app.save(collection); -}, (app) => { - const collection = app.findCollectionByNameOrId("pbc_491894781"); - - return app.delete(collection); -}) diff --git a/002_source/pocketbase/pb_migrations/1745473349_created_Notifications.js b/002_source/pocketbase/pb_migrations/1745473349_created_Notifications.js deleted file mode 100644 index cf84d4d..0000000 --- a/002_source/pocketbase/pb_migrations/1745473349_created_Notifications.js +++ /dev/null @@ -1,100 +0,0 @@ -/// -migrate((app) => { - const collection = new Collection({ - "createRule": null, - "deleteRule": null, - "fields": [ - { - "autogeneratePattern": "[a-z0-9]{15}", - "hidden": false, - "id": "text3208210256", - "max": 15, - "min": 15, - "name": "id", - "pattern": "^[a-z0-9]+$", - "presentable": false, - "primaryKey": true, - "required": true, - "system": true, - "type": "text" - }, - { - "hidden": false, - "id": "bool2555855207", - "name": "read", - "presentable": false, - "required": false, - "system": false, - "type": "bool" - }, - { - "autogeneratePattern": "", - "hidden": false, - "id": "text2363381545", - "max": 0, - "min": 0, - "name": "type", - "pattern": "", - "presentable": false, - "primaryKey": false, - "required": false, - "system": false, - "type": "text" - }, - { - "hidden": false, - "id": "json3182418120", - "maxSize": 0, - "name": "author", - "presentable": false, - "required": false, - "system": false, - "type": "json" - }, - { - "hidden": false, - "id": "json4225294584", - "maxSize": 0, - "name": "job", - "presentable": false, - "required": false, - "system": false, - "type": "json" - }, - { - "hidden": false, - "id": "autodate2990389176", - "name": "created", - "onCreate": true, - "onUpdate": false, - "presentable": false, - "system": false, - "type": "autodate" - }, - { - "hidden": false, - "id": "autodate3332085495", - "name": "updated", - "onCreate": true, - "onUpdate": true, - "presentable": false, - "system": false, - "type": "autodate" - } - ], - "id": "pbc_977978967", - "indexes": [], - "listRule": null, - "name": "Notifications", - "system": false, - "type": "base", - "updateRule": null, - "viewRule": null - }); - - return app.save(collection); -}, (app) => { - const collection = app.findCollectionByNameOrId("pbc_977978967"); - - return app.delete(collection); -}) diff --git a/002_source/pocketbase/pb_migrations/1745473581_updated_Notifications.js b/002_source/pocketbase/pb_migrations/1745473581_updated_Notifications.js deleted file mode 100644 index 2655e53..0000000 --- a/002_source/pocketbase/pb_migrations/1745473581_updated_Notifications.js +++ /dev/null @@ -1,29 +0,0 @@ -/// -migrate((app) => { - const collection = app.findCollectionByNameOrId("pbc_977978967") - - // add field - collection.fields.addAt(5, new Field({ - "autogeneratePattern": "", - "hidden": false, - "id": "text1843675174", - "max": 0, - "min": 0, - "name": "description", - "pattern": "", - "presentable": false, - "primaryKey": false, - "required": false, - "system": false, - "type": "text" - })) - - return app.save(collection) -}, (app) => { - const collection = app.findCollectionByNameOrId("pbc_977978967") - - // remove field - collection.fields.removeById("text1843675174") - - return app.save(collection) -}) diff --git a/002_source/pocketbase/pb_migrations/1745473942_updated_Notifications.js b/002_source/pocketbase/pb_migrations/1745473942_updated_Notifications.js deleted file mode 100644 index 742c807..0000000 --- a/002_source/pocketbase/pb_migrations/1745473942_updated_Notifications.js +++ /dev/null @@ -1,29 +0,0 @@ -/// -migrate((app) => { - const collection = app.findCollectionByNameOrId("pbc_977978967") - - // add field - collection.fields.addAt(6, new Field({ - "autogeneratePattern": "", - "hidden": false, - "id": "text1798508311", - "max": 0, - "min": 0, - "name": "NOTI_ID", - "pattern": "", - "presentable": false, - "primaryKey": false, - "required": false, - "system": false, - "type": "text" - })) - - return app.save(collection) -}, (app) => { - const collection = app.findCollectionByNameOrId("pbc_977978967") - - // remove field - collection.fields.removeById("text1798508311") - - return app.save(collection) -}) diff --git a/002_source/pocketbase/pb_migrations/1745487597_updated_Notifications.js b/002_source/pocketbase/pb_migrations/1745487597_updated_Notifications.js deleted file mode 100644 index 1fd4f93..0000000 --- a/002_source/pocketbase/pb_migrations/1745487597_updated_Notifications.js +++ /dev/null @@ -1,28 +0,0 @@ -/// -migrate((app) => { - const collection = app.findCollectionByNameOrId("pbc_977978967") - - // update collection data - unmarshal({ - "createRule": "", - "deleteRule": "", - "listRule": "", - "updateRule": "", - "viewRule": "" - }, collection) - - return app.save(collection) -}, (app) => { - const collection = app.findCollectionByNameOrId("pbc_977978967") - - // update collection data - unmarshal({ - "createRule": null, - "deleteRule": null, - "listRule": null, - "updateRule": null, - "viewRule": null - }, collection) - - return app.save(collection) -}) diff --git a/002_source/pocketbase/pb_migrations/1745335861_created_billingAddress.js b/002_source/pocketbase/pb_migrations/1746681012_deleted_UserMetas.js similarity index 70% rename from 002_source/pocketbase/pb_migrations/1745335861_created_billingAddress.js rename to 002_source/pocketbase/pb_migrations/1746681012_deleted_UserMetas.js index 6ef983c..29d91b2 100644 --- a/002_source/pocketbase/pb_migrations/1745335861_created_billingAddress.js +++ b/002_source/pocketbase/pb_migrations/1746681012_deleted_UserMetas.js @@ -1,8 +1,12 @@ /// migrate((app) => { + const collection = app.findCollectionByNameOrId("pbc_1305841361"); + + return app.delete(collection); +}, (app) => { const collection = new Collection({ - "createRule": null, - "deleteRule": null, + "createRule": "", + "deleteRule": "", "fields": [ { "autogeneratePattern": "[a-z0-9]{15}", @@ -21,10 +25,10 @@ migrate((app) => { { "autogeneratePattern": "", "hidden": false, - "id": "text1400097126", + "id": "text4192936109", "max": 0, "min": 0, - "name": "country", + "name": "helloworld", "pattern": "", "presentable": false, "primaryKey": false, @@ -33,74 +37,27 @@ migrate((app) => { "type": "text" }, { - "autogeneratePattern": "", "hidden": false, - "id": "text2744374011", - "max": 0, - "min": 0, - "name": "state", - "pattern": "", + "id": "json3622966325", + "maxSize": 0, + "name": "meta", "presentable": false, - "primaryKey": false, "required": false, "system": false, - "type": "text" + "type": "json" }, { - "autogeneratePattern": "", + "cascadeDelete": false, + "collectionId": "_pb_users_auth_", "hidden": false, - "id": "text760939060", - "max": 0, - "min": 0, - "name": "city", - "pattern": "", + "id": "relation2809058197", + "maxSelect": 1, + "minSelect": 0, + "name": "user_id", "presentable": false, - "primaryKey": false, "required": false, "system": false, - "type": "text" - }, - { - "autogeneratePattern": "", - "hidden": false, - "id": "text4114525948", - "max": 0, - "min": 0, - "name": "zipCode", - "pattern": "", - "presentable": false, - "primaryKey": false, - "required": false, - "system": false, - "type": "text" - }, - { - "autogeneratePattern": "", - "hidden": false, - "id": "text3620973610", - "max": 0, - "min": 0, - "name": "line1", - "pattern": "", - "presentable": false, - "primaryKey": false, - "required": false, - "system": false, - "type": "text" - }, - { - "autogeneratePattern": "", - "hidden": false, - "id": "text1322974608", - "max": 0, - "min": 0, - "name": "line2", - "pattern": "", - "presentable": false, - "primaryKey": false, - "required": false, - "system": false, - "type": "text" + "type": "relation" }, { "hidden": false, @@ -121,21 +78,59 @@ migrate((app) => { "presentable": false, "system": false, "type": "autodate" + }, + { + "autogeneratePattern": "", + "hidden": false, + "id": "text2744374011", + "max": 0, + "min": 0, + "name": "state", + "pattern": "", + "presentable": false, + "primaryKey": false, + "required": false, + "system": false, + "type": "text" + }, + { + "hidden": false, + "id": "file376926767", + "maxSelect": 1, + "maxSize": 0, + "mimeTypes": [], + "name": "avatar", + "presentable": false, + "protected": false, + "required": false, + "system": false, + "thumbs": [], + "type": "file" + }, + { + "autogeneratePattern": "", + "hidden": false, + "id": "text1466534506", + "max": 0, + "min": 0, + "name": "role", + "pattern": "", + "presentable": false, + "primaryKey": false, + "required": false, + "system": false, + "type": "text" } ], - "id": "pbc_1509025625", + "id": "pbc_1305841361", "indexes": [], - "listRule": null, - "name": "billingAddress", + "listRule": "", + "name": "UserMetas", "system": false, "type": "base", - "updateRule": null, - "viewRule": null + "updateRule": "", + "viewRule": "" }); return app.save(collection); -}, (app) => { - const collection = app.findCollectionByNameOrId("pbc_1509025625"); - - return app.delete(collection); }) diff --git a/002_source/pocketbase/pb_migrations/1745165249_updated_QuizLPCategories.js b/002_source/pocketbase/pb_migrations/1746681213_updated_UserMetas.js similarity index 60% rename from 002_source/pocketbase/pb_migrations/1745165249_updated_QuizLPCategories.js rename to 002_source/pocketbase/pb_migrations/1746681213_updated_UserMetas.js index a4895a1..9ed9628 100644 --- a/002_source/pocketbase/pb_migrations/1745165249_updated_QuizLPCategories.js +++ b/002_source/pocketbase/pb_migrations/1746681213_updated_UserMetas.js @@ -1,15 +1,15 @@ /// migrate((app) => { - const collection = app.findCollectionByNameOrId("pbc_3639453778") + const collection = app.findCollectionByNameOrId("pbc_1305841361") // add field collection.fields.addAt(9, new Field({ "autogeneratePattern": "", "hidden": false, - "id": "text1156222427", + "id": "text1579384326", "max": 0, "min": 0, - "name": "remarks", + "name": "name", "pattern": "", "presentable": false, "primaryKey": false, @@ -20,26 +20,26 @@ migrate((app) => { // add field collection.fields.addAt(10, new Field({ - "convertURLs": false, + "exceptDomains": null, "hidden": false, - "id": "editor1843675174", - "maxSize": 0, - "name": "description", + "id": "email3885137012", + "name": "email", + "onlyDomains": null, "presentable": false, "required": false, "system": false, - "type": "editor" + "type": "email" })) return app.save(collection) }, (app) => { - const collection = app.findCollectionByNameOrId("pbc_3639453778") + const collection = app.findCollectionByNameOrId("pbc_1305841361") // remove field - collection.fields.removeById("text1156222427") + collection.fields.removeById("text1579384326") // remove field - collection.fields.removeById("editor1843675174") + collection.fields.removeById("email3885137012") return app.save(collection) }) diff --git a/002_source/pocketbase/pb_migrations/1745336779_updated_users.js b/002_source/pocketbase/pb_migrations/1746681267_updated_users.js similarity index 61% rename from 002_source/pocketbase/pb_migrations/1745336779_updated_users.js rename to 002_source/pocketbase/pb_migrations/1746681267_updated_users.js index 31ad8b2..fee62ea 100644 --- a/002_source/pocketbase/pb_migrations/1745336779_updated_users.js +++ b/002_source/pocketbase/pb_migrations/1746681267_updated_users.js @@ -3,15 +3,19 @@ migrate((app) => { const collection = app.findCollectionByNameOrId("_pb_users_auth_") // add field - collection.fields.addAt(8, new Field({ + collection.fields.addAt(11, new Field({ + "autogeneratePattern": "", "hidden": false, - "id": "json2115670734", - "maxSize": 0, - "name": "billingAddress", + "id": "text1146066909", + "max": 0, + "min": 0, + "name": "phone", + "pattern": "", "presentable": false, + "primaryKey": false, "required": false, "system": false, - "type": "json" + "type": "text" })) return app.save(collection) @@ -19,7 +23,7 @@ migrate((app) => { const collection = app.findCollectionByNameOrId("_pb_users_auth_") // remove field - collection.fields.removeById("json2115670734") + collection.fields.removeById("text1146066909") return app.save(collection) }) diff --git a/002_source/pocketbase/pb_migrations/1744988760_updated_UserMetas.js b/002_source/pocketbase/pb_migrations/1746681302_updated_UserMetas.js similarity index 79% rename from 002_source/pocketbase/pb_migrations/1744988760_updated_UserMetas.js rename to 002_source/pocketbase/pb_migrations/1746681302_updated_UserMetas.js index e2efaca..e955407 100644 --- a/002_source/pocketbase/pb_migrations/1744988760_updated_UserMetas.js +++ b/002_source/pocketbase/pb_migrations/1746681302_updated_UserMetas.js @@ -3,13 +3,13 @@ migrate((app) => { const collection = app.findCollectionByNameOrId("pbc_1305841361") // add field - collection.fields.addAt(4, new Field({ + collection.fields.addAt(11, new Field({ "autogeneratePattern": "", "hidden": false, - "id": "text2744374011", + "id": "text1146066909", "max": 0, "min": 0, - "name": "state", + "name": "phone", "pattern": "", "presentable": false, "primaryKey": false, @@ -23,7 +23,7 @@ migrate((app) => { const collection = app.findCollectionByNameOrId("pbc_1305841361") // remove field - collection.fields.removeById("text2744374011") + collection.fields.removeById("text1146066909") return app.save(collection) }) diff --git a/002_source/pocketbase/pb_migrations/1745319840_updated_customers.js b/002_source/pocketbase/pb_migrations/1746683304_updated_Teachers.js similarity index 58% rename from 002_source/pocketbase/pb_migrations/1745319840_updated_customers.js rename to 002_source/pocketbase/pb_migrations/1746683304_updated_Teachers.js index 618d11a..7c577b4 100644 --- a/002_source/pocketbase/pb_migrations/1745319840_updated_customers.js +++ b/002_source/pocketbase/pb_migrations/1746683304_updated_Teachers.js @@ -1,19 +1,19 @@ /// migrate((app) => { - const collection = app.findCollectionByNameOrId("pbc_108570809") + const collection = app.findCollectionByNameOrId("pbc_1413424569") // update collection data unmarshal({ - "name": "Customers" + "name": "Teachers_xxx" }, collection) return app.save(collection) }, (app) => { - const collection = app.findCollectionByNameOrId("pbc_108570809") + const collection = app.findCollectionByNameOrId("pbc_1413424569") // update collection data unmarshal({ - "name": "customers" + "name": "Teachers" }, collection) return app.save(collection)