diff --git a/AGENTS.md b/AGENTS.md
index e58ea17..42f87cd 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -184,4 +184,5 @@ PROD=true
### SKILLS FOR AI
1. C:\Users\Serg\.config\opencode\skills - общие скилы для всех проектов
-2. project/.opencode/skills/avtourist - скилы для конкретного проекта
\ No newline at end of file
+2. project/.opencode/skills/avtourist - скилы для конкретного проекта
+3. answer-unit-optimization - скилы для AI SEO
\ No newline at end of file
diff --git a/backend/pb_migrations/1776199882_created_posts.js b/backend/pb_migrations/1776199882_created_posts.js
deleted file mode 100644
index 512ec42..0000000
--- a/backend/pb_migrations/1776199882_created_posts.js
+++ /dev/null
@@ -1,37 +0,0 @@
-///
-migrate((app) => {
- const collection = new Collection({
- "createRule": "@request.auth.id != \"\"",
- "deleteRule": "@request.auth.id != \"\"",
- "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"
- }
- ],
- "id": "pbc_1125843985",
- "indexes": [],
- "listRule": "",
- "name": "posts",
- "system": false,
- "type": "base",
- "updateRule": "@request.auth.id != \"\"",
- "viewRule": ""
- });
-
- return app.save(collection);
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_1125843985");
-
- return app.delete(collection);
-})
diff --git a/backend/pb_migrations/1776200325_updated_posts.js b/backend/pb_migrations/1776200325_updated_posts.js
deleted file mode 100644
index 65e0076..0000000
--- a/backend/pb_migrations/1776200325_updated_posts.js
+++ /dev/null
@@ -1,29 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_1125843985")
-
- // add field
- collection.fields.addAt(1, new Field({
- "autogeneratePattern": "",
- "hidden": false,
- "id": "text724990059",
- "max": 0,
- "min": 0,
- "name": "title",
- "pattern": "",
- "presentable": false,
- "primaryKey": false,
- "required": false,
- "system": false,
- "type": "text"
- }))
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_1125843985")
-
- // remove field
- collection.fields.removeById("text724990059")
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1776200337_updated_posts.js b/backend/pb_migrations/1776200337_updated_posts.js
deleted file mode 100644
index 8702016..0000000
--- a/backend/pb_migrations/1776200337_updated_posts.js
+++ /dev/null
@@ -1,29 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_1125843985")
-
- // add field
- collection.fields.addAt(2, 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_1125843985")
-
- // remove field
- collection.fields.removeById("text1843675174")
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1776200351_updated_posts.js b/backend/pb_migrations/1776200351_updated_posts.js
deleted file mode 100644
index 942cc80..0000000
--- a/backend/pb_migrations/1776200351_updated_posts.js
+++ /dev/null
@@ -1,29 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_1125843985")
-
- // add field
- collection.fields.addAt(3, new Field({
- "autogeneratePattern": "",
- "hidden": false,
- "id": "text3182418120",
- "max": 0,
- "min": 0,
- "name": "author",
- "pattern": "",
- "presentable": false,
- "primaryKey": false,
- "required": false,
- "system": false,
- "type": "text"
- }))
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_1125843985")
-
- // remove field
- collection.fields.removeById("text3182418120")
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1776200365_updated_posts.js b/backend/pb_migrations/1776200365_updated_posts.js
deleted file mode 100644
index 53df4b0..0000000
--- a/backend/pb_migrations/1776200365_updated_posts.js
+++ /dev/null
@@ -1,29 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_1125843985")
-
- // add field
- collection.fields.addAt(4, new Field({
- "autogeneratePattern": "",
- "hidden": false,
- "id": "text105650625",
- "max": 0,
- "min": 0,
- "name": "category",
- "pattern": "",
- "presentable": false,
- "primaryKey": false,
- "required": false,
- "system": false,
- "type": "text"
- }))
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_1125843985")
-
- // remove field
- collection.fields.removeById("text105650625")
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1776200395_updated_posts.js b/backend/pb_migrations/1776200395_updated_posts.js
deleted file mode 100644
index e265e93..0000000
--- a/backend/pb_migrations/1776200395_updated_posts.js
+++ /dev/null
@@ -1,29 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_1125843985")
-
- // add field
- collection.fields.addAt(5, new Field({
- "autogeneratePattern": "",
- "hidden": false,
- "id": "text1898540465",
- "max": 0,
- "min": 0,
- "name": "categoryColor",
- "pattern": "",
- "presentable": false,
- "primaryKey": false,
- "required": false,
- "system": false,
- "type": "text"
- }))
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_1125843985")
-
- // remove field
- collection.fields.removeById("text1898540465")
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1776200412_updated_posts.js b/backend/pb_migrations/1776200412_updated_posts.js
deleted file mode 100644
index bc52ca3..0000000
--- a/backend/pb_migrations/1776200412_updated_posts.js
+++ /dev/null
@@ -1,26 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_1125843985")
-
- // add field
- collection.fields.addAt(6, new Field({
- "hidden": false,
- "id": "date2862495610",
- "max": "",
- "min": "",
- "name": "date",
- "presentable": false,
- "required": false,
- "system": false,
- "type": "date"
- }))
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_1125843985")
-
- // remove field
- collection.fields.removeById("date2862495610")
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1776200439_updated_posts.js b/backend/pb_migrations/1776200439_updated_posts.js
deleted file mode 100644
index 08ffdcf..0000000
--- a/backend/pb_migrations/1776200439_updated_posts.js
+++ /dev/null
@@ -1,29 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_1125843985")
-
- // add field
- collection.fields.addAt(7, new Field({
- "autogeneratePattern": "",
- "hidden": false,
- "id": "text1864383797",
- "max": 0,
- "min": 0,
- "name": "readmeTime",
- "pattern": "",
- "presentable": false,
- "primaryKey": false,
- "required": false,
- "system": false,
- "type": "text"
- }))
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_1125843985")
-
- // remove field
- collection.fields.removeById("text1864383797")
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1776200454_updated_posts.js b/backend/pb_migrations/1776200454_updated_posts.js
deleted file mode 100644
index 2171599..0000000
--- a/backend/pb_migrations/1776200454_updated_posts.js
+++ /dev/null
@@ -1,29 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_1125843985")
-
- // add field
- collection.fields.addAt(8, new Field({
- "autogeneratePattern": "",
- "hidden": false,
- "id": "text2548032275",
- "max": 0,
- "min": 0,
- "name": "imageUrl",
- "pattern": "",
- "presentable": false,
- "primaryKey": false,
- "required": false,
- "system": false,
- "type": "text"
- }))
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_1125843985")
-
- // remove field
- collection.fields.removeById("text2548032275")
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1776200465_updated_posts.js b/backend/pb_migrations/1776200465_updated_posts.js
deleted file mode 100644
index 3e6b1f0..0000000
--- a/backend/pb_migrations/1776200465_updated_posts.js
+++ /dev/null
@@ -1,29 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_1125843985")
-
- // 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"
- }))
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_1125843985")
-
- // remove field
- collection.fields.removeById("text2560465762")
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1776200481_updated_posts.js b/backend/pb_migrations/1776200481_updated_posts.js
deleted file mode 100644
index 7198662..0000000
--- a/backend/pb_migrations/1776200481_updated_posts.js
+++ /dev/null
@@ -1,24 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_1125843985")
-
- // add field
- collection.fields.addAt(10, new Field({
- "hidden": false,
- "id": "bool1182570132",
- "name": "draft",
- "presentable": false,
- "required": false,
- "system": false,
- "type": "bool"
- }))
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_1125843985")
-
- // remove field
- collection.fields.removeById("bool1182570132")
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1776200499_updated_posts.js b/backend/pb_migrations/1776200499_updated_posts.js
deleted file mode 100644
index d53af72..0000000
--- a/backend/pb_migrations/1776200499_updated_posts.js
+++ /dev/null
@@ -1,26 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_1125843985")
-
- // add field
- collection.fields.addAt(11, new Field({
- "convertURLs": false,
- "hidden": false,
- "id": "editor4274335913",
- "maxSize": 0,
- "name": "content",
- "presentable": false,
- "required": false,
- "system": false,
- "type": "editor"
- }))
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_1125843985")
-
- // remove field
- collection.fields.removeById("editor4274335913")
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1776200529_updated_posts.js b/backend/pb_migrations/1776200529_updated_posts.js
deleted file mode 100644
index 2e4356e..0000000
--- a/backend/pb_migrations/1776200529_updated_posts.js
+++ /dev/null
@@ -1,22 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_1125843985")
-
- // update collection data
- unmarshal({
- "listRule": null,
- "viewRule": null
- }, collection)
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_1125843985")
-
- // update collection data
- unmarshal({
- "listRule": "",
- "viewRule": ""
- }, collection)
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1776200951_updated_posts.js b/backend/pb_migrations/1776200951_updated_posts.js
deleted file mode 100644
index 2b8d334..0000000
--- a/backend/pb_migrations/1776200951_updated_posts.js
+++ /dev/null
@@ -1,22 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_1125843985")
-
- // update collection data
- unmarshal({
- "listRule": " draft = false || @request.auth.id != \"\" ",
- "viewRule": " draft = false || @request.auth.id != \"\" "
- }, collection)
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_1125843985")
-
- // update collection data
- unmarshal({
- "listRule": null,
- "viewRule": null
- }, collection)
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1776236760_updated_posts.js b/backend/pb_migrations/1776236760_updated_posts.js
deleted file mode 100644
index e95018b..0000000
--- a/backend/pb_migrations/1776236760_updated_posts.js
+++ /dev/null
@@ -1,29 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_1125843985")
-
- // remove field
- collection.fields.removeById("text2548032275")
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_1125843985")
-
- // add field
- collection.fields.addAt(3, new Field({
- "autogeneratePattern": "",
- "hidden": false,
- "id": "text2548032275",
- "max": 0,
- "min": 0,
- "name": "imageUrl",
- "pattern": "",
- "presentable": false,
- "primaryKey": false,
- "required": false,
- "system": false,
- "type": "text"
- }))
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1776236785_updated_posts.js b/backend/pb_migrations/1776236785_updated_posts.js
deleted file mode 100644
index a054c3e..0000000
--- a/backend/pb_migrations/1776236785_updated_posts.js
+++ /dev/null
@@ -1,29 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_1125843985")
-
- // add field
- collection.fields.addAt(11, new Field({
- "hidden": false,
- "id": "file3309110367",
- "maxSelect": 1,
- "maxSize": 0,
- "mimeTypes": [],
- "name": "image",
- "presentable": false,
- "protected": false,
- "required": false,
- "system": false,
- "thumbs": [],
- "type": "file"
- }))
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_1125843985")
-
- // remove field
- collection.fields.removeById("file3309110367")
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1776259840_updated_users.js b/backend/pb_migrations/1776259840_updated_users.js
deleted file mode 100644
index c55d5c8..0000000
--- a/backend/pb_migrations/1776259840_updated_users.js
+++ /dev/null
@@ -1,48 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("_pb_users_auth_")
-
- // add field
- collection.fields.addAt(8, new Field({
- "autogeneratePattern": "",
- "hidden": false,
- "id": "text1542800728",
- "max": 0,
- "min": 0,
- "name": "field",
- "pattern": "",
- "presentable": false,
- "primaryKey": false,
- "required": false,
- "system": false,
- "type": "text"
- }))
-
- // add field
- collection.fields.addAt(9, new Field({
- "autogeneratePattern": "",
- "hidden": false,
- "id": "text596812118",
- "max": 0,
- "min": 0,
- "name": "firstName",
- "pattern": "",
- "presentable": false,
- "primaryKey": false,
- "required": false,
- "system": false,
- "type": "text"
- }))
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("_pb_users_auth_")
-
- // remove field
- collection.fields.removeById("text1542800728")
-
- // remove field
- collection.fields.removeById("text596812118")
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1776259856_updated_users.js b/backend/pb_migrations/1776259856_updated_users.js
deleted file mode 100644
index 885e536..0000000
--- a/backend/pb_migrations/1776259856_updated_users.js
+++ /dev/null
@@ -1,29 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("_pb_users_auth_")
-
- // add field
- collection.fields.addAt(10, new Field({
- "autogeneratePattern": "",
- "hidden": false,
- "id": "text2434144904",
- "max": 0,
- "min": 0,
- "name": "lastName",
- "pattern": "",
- "presentable": false,
- "primaryKey": false,
- "required": false,
- "system": false,
- "type": "text"
- }))
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("_pb_users_auth_")
-
- // remove field
- collection.fields.removeById("text2434144904")
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1776260244_updated_users.js b/backend/pb_migrations/1776260244_updated_users.js
deleted file mode 100644
index f65096b..0000000
--- a/backend/pb_migrations/1776260244_updated_users.js
+++ /dev/null
@@ -1,29 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("_pb_users_auth_")
-
- // remove field
- collection.fields.removeById("text1542800728")
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("_pb_users_auth_")
-
- // add field
- collection.fields.addAt(10, new Field({
- "autogeneratePattern": "",
- "hidden": false,
- "id": "text1542800728",
- "max": 0,
- "min": 0,
- "name": "field",
- "pattern": "",
- "presentable": false,
- "primaryKey": false,
- "required": false,
- "system": false,
- "type": "text"
- }))
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1776262072_updated_users.js b/backend/pb_migrations/1776262072_updated_users.js
deleted file mode 100644
index 30f9e35..0000000
--- a/backend/pb_migrations/1776262072_updated_users.js
+++ /dev/null
@@ -1,47 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("_pb_users_auth_")
-
- // update collection data
- unmarshal({
- "oauth2": {
- "mappedFields": {
- "name": ""
- }
- }
- }, collection)
-
- // remove field
- collection.fields.removeById("text1579384326")
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("_pb_users_auth_")
-
- // update collection data
- unmarshal({
- "oauth2": {
- "mappedFields": {
- "name": "name"
- }
- }
- }, collection)
-
- // add field
- collection.fields.addAt(6, new Field({
- "autogeneratePattern": "",
- "hidden": false,
- "id": "text1579384326",
- "max": 255,
- "min": 0,
- "name": "name",
- "pattern": "",
- "presentable": false,
- "primaryKey": false,
- "required": false,
- "system": false,
- "type": "text"
- }))
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1776262083_updated_users.js b/backend/pb_migrations/1776262083_updated_users.js
deleted file mode 100644
index 16b9d84..0000000
--- a/backend/pb_migrations/1776262083_updated_users.js
+++ /dev/null
@@ -1,53 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("_pb_users_auth_")
-
- // update collection data
- unmarshal({
- "oauth2": {
- "mappedFields": {
- "avatarURL": ""
- }
- }
- }, collection)
-
- // remove field
- collection.fields.removeById("file376926767")
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("_pb_users_auth_")
-
- // update collection data
- unmarshal({
- "oauth2": {
- "mappedFields": {
- "avatarURL": "avatar"
- }
- }
- }, collection)
-
- // add field
- collection.fields.addAt(8, new Field({
- "hidden": false,
- "id": "file376926767",
- "maxSelect": 1,
- "maxSize": 0,
- "mimeTypes": [
- "image/jpeg",
- "image/png",
- "image/svg+xml",
- "image/gif",
- "image/webp"
- ],
- "name": "avatar",
- "presentable": false,
- "protected": false,
- "required": false,
- "system": false,
- "thumbs": null,
- "type": "file"
- }))
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1776343047_created_post_votes.js b/backend/pb_migrations/1776343047_created_post_votes.js
deleted file mode 100644
index 080f416..0000000
--- a/backend/pb_migrations/1776343047_created_post_votes.js
+++ /dev/null
@@ -1,70 +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"
- },
- {
- "cascadeDelete": false,
- "collectionId": "pbc_1125843985",
- "hidden": false,
- "id": "relation1267270444",
- "maxSelect": 1,
- "minSelect": 0,
- "name": "post_id",
- "presentable": false,
- "required": false,
- "system": false,
- "type": "relation"
- },
- {
- "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_941672112",
- "indexes": [],
- "listRule": null,
- "name": "post_votes",
- "system": false,
- "type": "base",
- "updateRule": null,
- "viewRule": null
- });
-
- return app.save(collection);
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_941672112");
-
- return app.delete(collection);
-})
diff --git a/backend/pb_migrations/1776343064_updated_post_votes.js b/backend/pb_migrations/1776343064_updated_post_votes.js
deleted file mode 100644
index 3095419..0000000
--- a/backend/pb_migrations/1776343064_updated_post_votes.js
+++ /dev/null
@@ -1,28 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_941672112")
-
- // add field
- collection.fields.addAt(2, 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_941672112")
-
- // remove field
- collection.fields.removeById("relation2809058197")
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1776343096_updated_post_votes.js b/backend/pb_migrations/1776343096_updated_post_votes.js
deleted file mode 100644
index d63391f..0000000
--- a/backend/pb_migrations/1776343096_updated_post_votes.js
+++ /dev/null
@@ -1,28 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_941672112")
-
- // add field
- collection.fields.addAt(3, new Field({
- "hidden": false,
- "id": "select1002219032",
- "maxSelect": 1,
- "name": "vote_type",
- "presentable": false,
- "required": false,
- "system": false,
- "type": "select",
- "values": [
- "like"
- ]
- }))
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_941672112")
-
- // remove field
- collection.fields.removeById("select1002219032")
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1776343107_updated_post_votes.js b/backend/pb_migrations/1776343107_updated_post_votes.js
deleted file mode 100644
index b251c85..0000000
--- a/backend/pb_migrations/1776343107_updated_post_votes.js
+++ /dev/null
@@ -1,41 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_941672112")
-
- // update field
- collection.fields.addAt(3, new Field({
- "hidden": false,
- "id": "select1002219032",
- "maxSelect": 1,
- "name": "vote_type",
- "presentable": false,
- "required": false,
- "system": false,
- "type": "select",
- "values": [
- "like",
- "dislike"
- ]
- }))
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_941672112")
-
- // update field
- collection.fields.addAt(3, new Field({
- "hidden": false,
- "id": "select1002219032",
- "maxSelect": 1,
- "name": "vote_type",
- "presentable": false,
- "required": false,
- "system": false,
- "type": "select",
- "values": [
- "like"
- ]
- }))
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1776343360_updated_post_votes.js b/backend/pb_migrations/1776343360_updated_post_votes.js
deleted file mode 100644
index 784d9a7..0000000
--- a/backend/pb_migrations/1776343360_updated_post_votes.js
+++ /dev/null
@@ -1,22 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_941672112")
-
- // update collection data
- unmarshal({
- "listRule": "",
- "viewRule": ""
- }, collection)
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_941672112")
-
- // update collection data
- unmarshal({
- "listRule": null,
- "viewRule": null
- }, collection)
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1776344533_updated_post_votes.js b/backend/pb_migrations/1776344533_updated_post_votes.js
deleted file mode 100644
index 00cf2c9..0000000
--- a/backend/pb_migrations/1776344533_updated_post_votes.js
+++ /dev/null
@@ -1,24 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_941672112")
-
- // update collection data
- unmarshal({
- "createRule": "@request.auth.id != \"\"",
- "listRule": "@request.auth.id != \"\"",
- "viewRule": "@request.auth.id != \"\""
- }, collection)
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_941672112")
-
- // update collection data
- unmarshal({
- "createRule": null,
- "listRule": "",
- "viewRule": ""
- }, collection)
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1776344561_updated_post_votes.js b/backend/pb_migrations/1776344561_updated_post_votes.js
deleted file mode 100644
index 0452721..0000000
--- a/backend/pb_migrations/1776344561_updated_post_votes.js
+++ /dev/null
@@ -1,22 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_941672112")
-
- // update collection data
- unmarshal({
- "deleteRule": "@request.auth.id != \"\"",
- "updateRule": "@request.auth.id != \"\""
- }, collection)
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_941672112")
-
- // update collection data
- unmarshal({
- "deleteRule": null,
- "updateRule": null
- }, collection)
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1776352196_updated_post_votes.js b/backend/pb_migrations/1776352196_updated_post_votes.js
deleted file mode 100644
index fdb575e..0000000
--- a/backend/pb_migrations/1776352196_updated_post_votes.js
+++ /dev/null
@@ -1,40 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_941672112")
-
- // update field
- collection.fields.addAt(1, new Field({
- "cascadeDelete": false,
- "collectionId": "pbc_1125843985",
- "hidden": false,
- "id": "relation1267270444",
- "maxSelect": 1,
- "minSelect": 0,
- "name": "post",
- "presentable": false,
- "required": false,
- "system": false,
- "type": "relation"
- }))
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_941672112")
-
- // update field
- collection.fields.addAt(1, new Field({
- "cascadeDelete": false,
- "collectionId": "pbc_1125843985",
- "hidden": false,
- "id": "relation1267270444",
- "maxSelect": 1,
- "minSelect": 0,
- "name": "post_id",
- "presentable": false,
- "required": false,
- "system": false,
- "type": "relation"
- }))
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1776352206_updated_post_votes.js b/backend/pb_migrations/1776352206_updated_post_votes.js
deleted file mode 100644
index 9f6ebce..0000000
--- a/backend/pb_migrations/1776352206_updated_post_votes.js
+++ /dev/null
@@ -1,40 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_941672112")
-
- // update field
- collection.fields.addAt(2, new Field({
- "cascadeDelete": false,
- "collectionId": "_pb_users_auth_",
- "hidden": false,
- "id": "relation2809058197",
- "maxSelect": 1,
- "minSelect": 0,
- "name": "user",
- "presentable": false,
- "required": false,
- "system": false,
- "type": "relation"
- }))
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_941672112")
-
- // update field
- collection.fields.addAt(2, 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)
-})
diff --git a/backend/pb_migrations/1776353507_updated_post_votes.js b/backend/pb_migrations/1776353507_updated_post_votes.js
deleted file mode 100644
index 6a98e40..0000000
--- a/backend/pb_migrations/1776353507_updated_post_votes.js
+++ /dev/null
@@ -1,28 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_941672112")
-
- // remove field
- collection.fields.removeById("relation2809058197")
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_941672112")
-
- // add field
- collection.fields.addAt(2, new Field({
- "cascadeDelete": false,
- "collectionId": "_pb_users_auth_",
- "hidden": false,
- "id": "relation2809058197",
- "maxSelect": 1,
- "minSelect": 0,
- "name": "user",
- "presentable": false,
- "required": false,
- "system": false,
- "type": "relation"
- }))
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1776353523_updated_post_votes.js b/backend/pb_migrations/1776353523_updated_post_votes.js
deleted file mode 100644
index f6d88af..0000000
--- a/backend/pb_migrations/1776353523_updated_post_votes.js
+++ /dev/null
@@ -1,28 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_941672112")
-
- // add field
- collection.fields.addAt(3, new Field({
- "cascadeDelete": false,
- "collectionId": "_pb_users_auth_",
- "hidden": false,
- "id": "relation2375276105",
- "maxSelect": 1,
- "minSelect": 0,
- "name": "user",
- "presentable": false,
- "required": false,
- "system": false,
- "type": "relation"
- }))
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_941672112")
-
- // remove field
- collection.fields.removeById("relation2375276105")
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1776353710_updated_post_votes.js b/backend/pb_migrations/1776353710_updated_post_votes.js
deleted file mode 100644
index 31ae603..0000000
--- a/backend/pb_migrations/1776353710_updated_post_votes.js
+++ /dev/null
@@ -1,22 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_941672112")
-
- // update collection data
- unmarshal({
- "listRule": null,
- "viewRule": null
- }, collection)
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_941672112")
-
- // update collection data
- unmarshal({
- "listRule": "@request.auth.id != \"\"",
- "viewRule": "@request.auth.id != \"\""
- }, collection)
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1776353752_updated_post_votes.js b/backend/pb_migrations/1776353752_updated_post_votes.js
deleted file mode 100644
index caeda02..0000000
--- a/backend/pb_migrations/1776353752_updated_post_votes.js
+++ /dev/null
@@ -1,20 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_941672112")
-
- // update collection data
- unmarshal({
- "createRule": null
- }, collection)
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_941672112")
-
- // update collection data
- unmarshal({
- "createRule": "@request.auth.id != \"\""
- }, collection)
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1776354539_updated_post_votes.js b/backend/pb_migrations/1776354539_updated_post_votes.js
deleted file mode 100644
index b06cb1d..0000000
--- a/backend/pb_migrations/1776354539_updated_post_votes.js
+++ /dev/null
@@ -1,24 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_941672112")
-
- // update collection data
- unmarshal({
- "createRule": "@request.auth.id != \"\"",
- "listRule": "@request.auth.id != \"\"",
- "viewRule": "@request.auth.id != \"\""
- }, collection)
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_941672112")
-
- // update collection data
- unmarshal({
- "createRule": null,
- "listRule": null,
- "viewRule": null
- }, collection)
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1776355090_deleted_post_votes.js b/backend/pb_migrations/1776355090_deleted_post_votes.js
deleted file mode 100644
index 5f2108e..0000000
--- a/backend/pb_migrations/1776355090_deleted_post_votes.js
+++ /dev/null
@@ -1,97 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_941672112");
-
- return app.delete(collection);
-}, (app) => {
- const collection = new Collection({
- "createRule": "@request.auth.id != \"\"",
- "deleteRule": "@request.auth.id != \"\"",
- "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"
- },
- {
- "cascadeDelete": false,
- "collectionId": "_pb_users_auth_",
- "hidden": false,
- "id": "relation2375276105",
- "maxSelect": 1,
- "minSelect": 0,
- "name": "user",
- "presentable": false,
- "required": false,
- "system": false,
- "type": "relation"
- },
- {
- "cascadeDelete": false,
- "collectionId": "pbc_1125843985",
- "hidden": false,
- "id": "relation1267270444",
- "maxSelect": 1,
- "minSelect": 0,
- "name": "post",
- "presentable": false,
- "required": false,
- "system": false,
- "type": "relation"
- },
- {
- "hidden": false,
- "id": "select1002219032",
- "maxSelect": 1,
- "name": "vote_type",
- "presentable": false,
- "required": false,
- "system": false,
- "type": "select",
- "values": [
- "like",
- "dislike"
- ]
- },
- {
- "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_941672112",
- "indexes": [],
- "listRule": "@request.auth.id != \"\"",
- "name": "post_votes",
- "system": false,
- "type": "base",
- "updateRule": "@request.auth.id != \"\"",
- "viewRule": "@request.auth.id != \"\""
- });
-
- return app.save(collection);
-})
diff --git a/backend/pb_migrations/1776355139_created_post_votes.js b/backend/pb_migrations/1776355139_created_post_votes.js
deleted file mode 100644
index 95925d3..0000000
--- a/backend/pb_migrations/1776355139_created_post_votes.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_941672112",
- "indexes": [],
- "listRule": null,
- "name": "post_votes",
- "system": false,
- "type": "base",
- "updateRule": null,
- "viewRule": null
- });
-
- return app.save(collection);
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_941672112");
-
- return app.delete(collection);
-})
diff --git a/backend/pb_migrations/1776355194_updated_post_votes.js b/backend/pb_migrations/1776355194_updated_post_votes.js
deleted file mode 100644
index 002ae8e..0000000
--- a/backend/pb_migrations/1776355194_updated_post_votes.js
+++ /dev/null
@@ -1,28 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_941672112")
-
- // add field
- collection.fields.addAt(1, new Field({
- "cascadeDelete": false,
- "collectionId": "_pb_users_auth_",
- "hidden": false,
- "id": "relation2375276105",
- "maxSelect": 1,
- "minSelect": 0,
- "name": "user",
- "presentable": false,
- "required": false,
- "system": false,
- "type": "relation"
- }))
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_941672112")
-
- // remove field
- collection.fields.removeById("relation2375276105")
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1776355205_updated_post_votes.js b/backend/pb_migrations/1776355205_updated_post_votes.js
deleted file mode 100644
index da5defe..0000000
--- a/backend/pb_migrations/1776355205_updated_post_votes.js
+++ /dev/null
@@ -1,28 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_941672112")
-
- // add field
- collection.fields.addAt(2, new Field({
- "cascadeDelete": false,
- "collectionId": "pbc_1125843985",
- "hidden": false,
- "id": "relation1519021197",
- "maxSelect": 1,
- "minSelect": 0,
- "name": "post",
- "presentable": false,
- "required": false,
- "system": false,
- "type": "relation"
- }))
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_941672112")
-
- // remove field
- collection.fields.removeById("relation1519021197")
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1776355216_deleted_post_votes.js b/backend/pb_migrations/1776355216_deleted_post_votes.js
deleted file mode 100644
index f2497be..0000000
--- a/backend/pb_migrations/1776355216_deleted_post_votes.js
+++ /dev/null
@@ -1,83 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_941672112");
-
- return app.delete(collection);
-}, (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"
- },
- {
- "cascadeDelete": false,
- "collectionId": "_pb_users_auth_",
- "hidden": false,
- "id": "relation2375276105",
- "maxSelect": 1,
- "minSelect": 0,
- "name": "user",
- "presentable": false,
- "required": false,
- "system": false,
- "type": "relation"
- },
- {
- "cascadeDelete": false,
- "collectionId": "pbc_1125843985",
- "hidden": false,
- "id": "relation1519021197",
- "maxSelect": 1,
- "minSelect": 0,
- "name": "post",
- "presentable": false,
- "required": false,
- "system": false,
- "type": "relation"
- },
- {
- "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_941672112",
- "indexes": [],
- "listRule": null,
- "name": "post_votes",
- "system": false,
- "type": "base",
- "updateRule": null,
- "viewRule": null
- });
-
- return app.save(collection);
-})
diff --git a/backend/pb_migrations/1776355245_created_post_votes.js b/backend/pb_migrations/1776355245_created_post_votes.js
deleted file mode 100644
index af676ff..0000000
--- a/backend/pb_migrations/1776355245_created_post_votes.js
+++ /dev/null
@@ -1,83 +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"
- },
- {
- "cascadeDelete": false,
- "collectionId": "_pb_users_auth_",
- "hidden": false,
- "id": "relation2375276105",
- "maxSelect": 1,
- "minSelect": 0,
- "name": "user",
- "presentable": false,
- "required": false,
- "system": false,
- "type": "relation"
- },
- {
- "cascadeDelete": false,
- "collectionId": "pbc_1125843985",
- "hidden": false,
- "id": "relation1519021197",
- "maxSelect": 1,
- "minSelect": 0,
- "name": "post",
- "presentable": false,
- "required": false,
- "system": false,
- "type": "relation"
- },
- {
- "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_941672112",
- "indexes": [],
- "listRule": null,
- "name": "post_votes",
- "system": false,
- "type": "base",
- "updateRule": null,
- "viewRule": null
- });
-
- return app.save(collection);
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_941672112");
-
- return app.delete(collection);
-})
diff --git a/backend/pb_migrations/1776355285_updated_post_votes.js b/backend/pb_migrations/1776355285_updated_post_votes.js
deleted file mode 100644
index 466885c..0000000
--- a/backend/pb_migrations/1776355285_updated_post_votes.js
+++ /dev/null
@@ -1,29 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_941672112")
-
- // add field
- collection.fields.addAt(3, new Field({
- "hidden": false,
- "id": "select1002219032",
- "maxSelect": 1,
- "name": "vote_type",
- "presentable": false,
- "required": false,
- "system": false,
- "type": "select",
- "values": [
- "like",
- "dislike"
- ]
- }))
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_941672112")
-
- // remove field
- collection.fields.removeById("select1002219032")
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1776355306_updated_post_votes.js b/backend/pb_migrations/1776355306_updated_post_votes.js
deleted file mode 100644
index 5ce9cba..0000000
--- a/backend/pb_migrations/1776355306_updated_post_votes.js
+++ /dev/null
@@ -1,24 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_941672112")
-
- // update collection data
- unmarshal({
- "createRule": "",
- "listRule": "",
- "viewRule": ""
- }, collection)
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_941672112")
-
- // update collection data
- unmarshal({
- "createRule": null,
- "listRule": null,
- "viewRule": null
- }, collection)
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1776514159_created_comments.js b/backend/pb_migrations/1776514159_created_comments.js
deleted file mode 100644
index 00f2597..0000000
--- a/backend/pb_migrations/1776514159_created_comments.js
+++ /dev/null
@@ -1,126 +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"
- },
- {
- "autogeneratePattern": "",
- "hidden": false,
- "id": "text4274335913",
- "max": 0,
- "min": 0,
- "name": "content",
- "pattern": "",
- "presentable": false,
- "primaryKey": false,
- "required": false,
- "system": false,
- "type": "text"
- },
- {
- "autogeneratePattern": "",
- "hidden": false,
- "id": "text1372126313",
- "max": 0,
- "min": 0,
- "name": "post_slug",
- "pattern": "",
- "presentable": false,
- "primaryKey": false,
- "required": false,
- "system": false,
- "type": "text"
- },
- {
- "cascadeDelete": false,
- "collectionId": "_pb_users_auth_",
- "hidden": false,
- "id": "relation2375276105",
- "maxSelect": 1,
- "minSelect": 0,
- "name": "user",
- "presentable": false,
- "required": false,
- "system": false,
- "type": "relation"
- },
- {
- "autogeneratePattern": "",
- "hidden": false,
- "id": "text1032740943",
- "max": 0,
- "min": 0,
- "name": "parent",
- "pattern": "",
- "presentable": false,
- "primaryKey": false,
- "required": false,
- "system": false,
- "type": "text"
- },
- {
- "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": "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_533777971",
- "indexes": [],
- "listRule": null,
- "name": "comments",
- "system": false,
- "type": "base",
- "updateRule": null,
- "viewRule": null
- });
-
- return app.save(collection);
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_533777971");
-
- return app.delete(collection);
-})
diff --git a/backend/pb_migrations/1776514585_updated_comments.js b/backend/pb_migrations/1776514585_updated_comments.js
deleted file mode 100644
index d7e21f7..0000000
--- a/backend/pb_migrations/1776514585_updated_comments.js
+++ /dev/null
@@ -1,28 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_533777971")
-
- // update collection data
- unmarshal({
- "createRule": "@request.auth.id != \"\"",
- "deleteRule": "user.id = @request.auth.id ",
- "listRule": " status = \"published\" || @request.auth.id != \"\" ",
- "updateRule": " user.id = @request.auth.id ",
- "viewRule": " status = \"published\" || @request.auth.id != \"\" "
- }, collection)
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_533777971")
-
- // update collection data
- unmarshal({
- "createRule": null,
- "deleteRule": null,
- "listRule": null,
- "updateRule": null,
- "viewRule": null
- }, collection)
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1776528654_created_reviews.js b/backend/pb_migrations/1776528654_created_reviews.js
deleted file mode 100644
index 83036ea..0000000
--- a/backend/pb_migrations/1776528654_created_reviews.js
+++ /dev/null
@@ -1,70 +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"
- },
- {
- "cascadeDelete": false,
- "collectionId": "_pb_users_auth_",
- "hidden": false,
- "id": "relation2375276105",
- "maxSelect": 1,
- "minSelect": 0,
- "name": "user",
- "presentable": false,
- "required": false,
- "system": false,
- "type": "relation"
- },
- {
- "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_4163081445",
- "indexes": [],
- "listRule": null,
- "name": "reviews",
- "system": false,
- "type": "base",
- "updateRule": null,
- "viewRule": null
- });
-
- return app.save(collection);
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_4163081445");
-
- return app.delete(collection);
-})
diff --git a/backend/pb_migrations/1776528667_updated_reviews.js b/backend/pb_migrations/1776528667_updated_reviews.js
deleted file mode 100644
index 62b5912..0000000
--- a/backend/pb_migrations/1776528667_updated_reviews.js
+++ /dev/null
@@ -1,29 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_4163081445")
-
- // add field
- collection.fields.addAt(2, new Field({
- "autogeneratePattern": "",
- "hidden": false,
- "id": "text1579384326",
- "max": 0,
- "min": 0,
- "name": "name",
- "pattern": "",
- "presentable": false,
- "primaryKey": false,
- "required": false,
- "system": false,
- "type": "text"
- }))
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_4163081445")
-
- // remove field
- collection.fields.removeById("text1579384326")
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1776528682_updated_reviews.js b/backend/pb_migrations/1776528682_updated_reviews.js
deleted file mode 100644
index 48fcc99..0000000
--- a/backend/pb_migrations/1776528682_updated_reviews.js
+++ /dev/null
@@ -1,29 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_4163081445")
-
- // add field
- collection.fields.addAt(3, new Field({
- "autogeneratePattern": "",
- "hidden": false,
- "id": "text3883309839",
- "max": 0,
- "min": 0,
- "name": "surname",
- "pattern": "",
- "presentable": false,
- "primaryKey": false,
- "required": false,
- "system": false,
- "type": "text"
- }))
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_4163081445")
-
- // remove field
- collection.fields.removeById("text3883309839")
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1776528713_updated_reviews.js b/backend/pb_migrations/1776528713_updated_reviews.js
deleted file mode 100644
index f4d6d28..0000000
--- a/backend/pb_migrations/1776528713_updated_reviews.js
+++ /dev/null
@@ -1,29 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_4163081445")
-
- // add field
- collection.fields.addAt(4, new Field({
- "autogeneratePattern": "",
- "hidden": false,
- "id": "text999008199",
- "max": 0,
- "min": 0,
- "name": "text",
- "pattern": "",
- "presentable": false,
- "primaryKey": false,
- "required": false,
- "system": false,
- "type": "text"
- }))
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_4163081445")
-
- // remove field
- collection.fields.removeById("text999008199")
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1776528727_updated_reviews.js b/backend/pb_migrations/1776528727_updated_reviews.js
deleted file mode 100644
index 264a4ab..0000000
--- a/backend/pb_migrations/1776528727_updated_reviews.js
+++ /dev/null
@@ -1,27 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_4163081445")
-
- // add field
- collection.fields.addAt(5, new Field({
- "hidden": false,
- "id": "number3632866850",
- "max": null,
- "min": null,
- "name": "rating",
- "onlyInt": false,
- "presentable": false,
- "required": false,
- "system": false,
- "type": "number"
- }))
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_4163081445")
-
- // remove field
- collection.fields.removeById("number3632866850")
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1776528770_updated_reviews.js b/backend/pb_migrations/1776528770_updated_reviews.js
deleted file mode 100644
index b071f9f..0000000
--- a/backend/pb_migrations/1776528770_updated_reviews.js
+++ /dev/null
@@ -1,30 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_4163081445")
-
- // add field
- collection.fields.addAt(6, new Field({
- "hidden": false,
- "id": "select2063623452",
- "maxSelect": 1,
- "name": "status",
- "presentable": false,
- "required": false,
- "system": false,
- "type": "select",
- "values": [
- "pending",
- "published",
- "spam"
- ]
- }))
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_4163081445")
-
- // remove field
- collection.fields.removeById("select2063623452")
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1776528788_updated_reviews.js b/backend/pb_migrations/1776528788_updated_reviews.js
deleted file mode 100644
index 8631f27..0000000
--- a/backend/pb_migrations/1776528788_updated_reviews.js
+++ /dev/null
@@ -1,27 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_4163081445")
-
- // add field
- collection.fields.addAt(7, new Field({
- "hidden": false,
- "id": "number1696582880",
- "max": null,
- "min": null,
- "name": "votesCount",
- "onlyInt": false,
- "presentable": false,
- "required": false,
- "system": false,
- "type": "number"
- }))
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_4163081445")
-
- // remove field
- collection.fields.removeById("number1696582880")
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1776529504_updated_reviews.js b/backend/pb_migrations/1776529504_updated_reviews.js
deleted file mode 100644
index a2f8135..0000000
--- a/backend/pb_migrations/1776529504_updated_reviews.js
+++ /dev/null
@@ -1,26 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_4163081445")
-
- // update collection data
- unmarshal({
- "createRule": "",
- "listRule": "",
- "updateRule": "",
- "viewRule": ""
- }, collection)
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_4163081445")
-
- // update collection data
- unmarshal({
- "createRule": null,
- "listRule": null,
- "updateRule": null,
- "viewRule": null
- }, collection)
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1776529637_updated_reviews.js b/backend/pb_migrations/1776529637_updated_reviews.js
deleted file mode 100644
index 91962ce..0000000
--- a/backend/pb_migrations/1776529637_updated_reviews.js
+++ /dev/null
@@ -1,29 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_4163081445")
-
- // add field
- collection.fields.addAt(8, new Field({
- "autogeneratePattern": "",
- "hidden": false,
- "id": "text3130199401",
- "max": 0,
- "min": 0,
- "name": "profession",
- "pattern": "",
- "presentable": false,
- "primaryKey": false,
- "required": false,
- "system": false,
- "type": "text"
- }))
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_4163081445")
-
- // remove field
- collection.fields.removeById("text3130199401")
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1776610409_created_consultations.js b/backend/pb_migrations/1776610409_created_consultations.js
deleted file mode 100644
index d1137cf..0000000
--- a/backend/pb_migrations/1776610409_created_consultations.js
+++ /dev/null
@@ -1,113 +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"
- },
- {
- "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": "text1146066909",
- "max": 0,
- "min": 0,
- "name": "phone",
- "pattern": "",
- "presentable": false,
- "primaryKey": false,
- "required": false,
- "system": false,
- "type": "text"
- },
- {
- "autogeneratePattern": "",
- "hidden": false,
- "id": "text3785202386",
- "max": 0,
- "min": 0,
- "name": "service",
- "pattern": "",
- "presentable": false,
- "primaryKey": false,
- "required": false,
- "system": false,
- "type": "text"
- },
- {
- "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": "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_3441013282",
- "indexes": [],
- "listRule": null,
- "name": "consultations",
- "system": false,
- "type": "base",
- "updateRule": null,
- "viewRule": null
- });
-
- return app.save(collection);
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_3441013282");
-
- return app.delete(collection);
-})
diff --git a/backend/pb_migrations/1776610679_updated_consultations.js b/backend/pb_migrations/1776610679_updated_consultations.js
deleted file mode 100644
index 7feb0bb..0000000
--- a/backend/pb_migrations/1776610679_updated_consultations.js
+++ /dev/null
@@ -1,24 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_3441013282")
-
- // update collection data
- unmarshal({
- "createRule": "",
- "deleteRule": "@request.auth.id != \"\"",
- "updateRule": "@request.auth.id != \"\""
- }, collection)
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_3441013282")
-
- // update collection data
- unmarshal({
- "createRule": null,
- "deleteRule": null,
- "updateRule": null
- }, collection)
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1776691961_updated_reviews.js b/backend/pb_migrations/1776691961_updated_reviews.js
deleted file mode 100644
index aa092c9..0000000
--- a/backend/pb_migrations/1776691961_updated_reviews.js
+++ /dev/null
@@ -1,22 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_4163081445")
-
- // update collection data
- unmarshal({
- "listRule": "status = \"published\" ",
- "viewRule": "status = \"published\" "
- }, collection)
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_4163081445")
-
- // update collection data
- unmarshal({
- "listRule": "",
- "viewRule": ""
- }, collection)
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1776691976_updated_reviews.js b/backend/pb_migrations/1776691976_updated_reviews.js
deleted file mode 100644
index 955d287..0000000
--- a/backend/pb_migrations/1776691976_updated_reviews.js
+++ /dev/null
@@ -1,20 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_4163081445")
-
- // update collection data
- unmarshal({
- "createRule": "@request.auth.id != \"\""
- }, collection)
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_4163081445")
-
- // update collection data
- unmarshal({
- "createRule": ""
- }, collection)
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1776691990_updated_reviews.js b/backend/pb_migrations/1776691990_updated_reviews.js
deleted file mode 100644
index 56c6e04..0000000
--- a/backend/pb_migrations/1776691990_updated_reviews.js
+++ /dev/null
@@ -1,20 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_4163081445")
-
- // update collection data
- unmarshal({
- "updateRule": "user = @request.auth.id || @request.auth.id = \"admin_id\""
- }, collection)
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_4163081445")
-
- // update collection data
- unmarshal({
- "updateRule": ""
- }, collection)
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1776692012_updated_reviews.js b/backend/pb_migrations/1776692012_updated_reviews.js
deleted file mode 100644
index 9931b6e..0000000
--- a/backend/pb_migrations/1776692012_updated_reviews.js
+++ /dev/null
@@ -1,20 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_4163081445")
-
- // update collection data
- unmarshal({
- "deleteRule": "user = @request.auth.id || @request.auth.id = \"admin_id\" "
- }, collection)
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_4163081445")
-
- // update collection data
- unmarshal({
- "deleteRule": null
- }, collection)
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1776696068_created_review_votes.js b/backend/pb_migrations/1776696068_created_review_votes.js
deleted file mode 100644
index e42ee41..0000000
--- a/backend/pb_migrations/1776696068_created_review_votes.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_362615506",
- "indexes": [],
- "listRule": null,
- "name": "review_votes",
- "system": false,
- "type": "base",
- "updateRule": null,
- "viewRule": null
- });
-
- return app.save(collection);
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_362615506");
-
- return app.delete(collection);
-})
diff --git a/backend/pb_migrations/1776696147_updated_review_votes.js b/backend/pb_migrations/1776696147_updated_review_votes.js
deleted file mode 100644
index 05b2f77..0000000
--- a/backend/pb_migrations/1776696147_updated_review_votes.js
+++ /dev/null
@@ -1,65 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_362615506")
-
- // add field
- collection.fields.addAt(1, new Field({
- "cascadeDelete": false,
- "collectionId": "pbc_4163081445",
- "hidden": false,
- "id": "relation2034467270",
- "maxSelect": 1,
- "minSelect": 0,
- "name": "review",
- "presentable": false,
- "required": false,
- "system": false,
- "type": "relation"
- }))
-
- // add field
- collection.fields.addAt(2, new Field({
- "cascadeDelete": false,
- "collectionId": "_pb_users_auth_",
- "hidden": false,
- "id": "relation2375276105",
- "maxSelect": 1,
- "minSelect": 0,
- "name": "user",
- "presentable": false,
- "required": false,
- "system": false,
- "type": "relation"
- }))
-
- // add field
- collection.fields.addAt(3, new Field({
- "hidden": false,
- "id": "select1002219032",
- "maxSelect": 1,
- "name": "vote_type",
- "presentable": false,
- "required": false,
- "system": false,
- "type": "select",
- "values": [
- "likes",
- "dislikes"
- ]
- }))
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_362615506")
-
- // remove field
- collection.fields.removeById("relation2034467270")
-
- // remove field
- collection.fields.removeById("relation2375276105")
-
- // remove field
- collection.fields.removeById("select1002219032")
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1776696207_updated_review_votes.js b/backend/pb_migrations/1776696207_updated_review_votes.js
deleted file mode 100644
index 9de12df..0000000
--- a/backend/pb_migrations/1776696207_updated_review_votes.js
+++ /dev/null
@@ -1,28 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_362615506")
-
- // update collection data
- unmarshal({
- "createRule": "@request.auth.id != \"\"",
- "deleteRule": "user = @request.auth.id",
- "listRule": "@request.auth.id != \"\"",
- "updateRule": "user = @request.auth.id",
- "viewRule": "@request.auth.id != \"\""
- }, collection)
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_362615506")
-
- // update collection data
- unmarshal({
- "createRule": null,
- "deleteRule": null,
- "listRule": null,
- "updateRule": null,
- "viewRule": null
- }, collection)
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1776793202_updated_review_votes.js b/backend/pb_migrations/1776793202_updated_review_votes.js
deleted file mode 100644
index cd6ba68..0000000
--- a/backend/pb_migrations/1776793202_updated_review_votes.js
+++ /dev/null
@@ -1,20 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_362615506")
-
- // update collection data
- unmarshal({
- "listRule": ""
- }, collection)
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_362615506")
-
- // update collection data
- unmarshal({
- "listRule": "@request.auth.id != \"\""
- }, collection)
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1776793214_updated_review_votes.js b/backend/pb_migrations/1776793214_updated_review_votes.js
deleted file mode 100644
index b388704..0000000
--- a/backend/pb_migrations/1776793214_updated_review_votes.js
+++ /dev/null
@@ -1,20 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_362615506")
-
- // update collection data
- unmarshal({
- "viewRule": ""
- }, collection)
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_362615506")
-
- // update collection data
- unmarshal({
- "viewRule": "@request.auth.id != \"\""
- }, collection)
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1777229304_updated_posts.js b/backend/pb_migrations/1777229304_updated_posts.js
deleted file mode 100644
index ce56447..0000000
--- a/backend/pb_migrations/1777229304_updated_posts.js
+++ /dev/null
@@ -1,27 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_1125843985")
-
- // add field
- collection.fields.addAt(12, new Field({
- "hidden": false,
- "id": "number300981383",
- "max": null,
- "min": null,
- "name": "views",
- "onlyInt": false,
- "presentable": false,
- "required": false,
- "system": false,
- "type": "number"
- }))
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_1125843985")
-
- // remove field
- collection.fields.removeById("number300981383")
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1777232002_created_post_views.js b/backend/pb_migrations/1777232002_created_post_views.js
deleted file mode 100644
index 37ad7c4..0000000
--- a/backend/pb_migrations/1777232002_created_post_views.js
+++ /dev/null
@@ -1,112 +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"
- },
- {
- "cascadeDelete": false,
- "collectionId": "pbc_1125843985",
- "hidden": false,
- "id": "relation1519021197",
- "maxSelect": 1,
- "minSelect": 0,
- "name": "post",
- "presentable": false,
- "required": false,
- "system": false,
- "type": "relation"
- },
- {
- "autogeneratePattern": "",
- "hidden": false,
- "id": "text791980464",
- "max": 0,
- "min": 0,
- "name": "visitor_hash",
- "pattern": "",
- "presentable": false,
- "primaryKey": false,
- "required": false,
- "system": false,
- "type": "text"
- },
- {
- "autogeneratePattern": "",
- "hidden": false,
- "id": "text2783163181",
- "max": 0,
- "min": 0,
- "name": "ip",
- "pattern": "",
- "presentable": false,
- "primaryKey": false,
- "required": false,
- "system": false,
- "type": "text"
- },
- {
- "autogeneratePattern": "",
- "hidden": false,
- "id": "text3293145029",
- "max": 0,
- "min": 0,
- "name": "user_agent",
- "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_2019238136",
- "indexes": [],
- "listRule": null,
- "name": "post_views",
- "system": false,
- "type": "base",
- "updateRule": null,
- "viewRule": null
- });
-
- return app.save(collection);
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_2019238136");
-
- return app.delete(collection);
-})
diff --git a/backend/pb_migrations/1777232058_updated_post_views.js b/backend/pb_migrations/1777232058_updated_post_views.js
deleted file mode 100644
index 51b79ab..0000000
--- a/backend/pb_migrations/1777232058_updated_post_views.js
+++ /dev/null
@@ -1,22 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_2019238136")
-
- // update collection data
- unmarshal({
- "deleteRule": "@request.auth.id != ''",
- "updateRule": "@request.auth.id != ''"
- }, collection)
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_2019238136")
-
- // update collection data
- unmarshal({
- "deleteRule": null,
- "updateRule": null
- }, collection)
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1777232226_updated_post_views.js b/backend/pb_migrations/1777232226_updated_post_views.js
deleted file mode 100644
index 4fd4490..0000000
--- a/backend/pb_migrations/1777232226_updated_post_views.js
+++ /dev/null
@@ -1,20 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_2019238136")
-
- // update collection data
- unmarshal({
- "updateRule": "@request.auth.id != \"\""
- }, collection)
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_2019238136")
-
- // update collection data
- unmarshal({
- "updateRule": "@request.auth.id != ''"
- }, collection)
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1777232798_updated_post_views.js b/backend/pb_migrations/1777232798_updated_post_views.js
deleted file mode 100644
index 2b07e62..0000000
--- a/backend/pb_migrations/1777232798_updated_post_views.js
+++ /dev/null
@@ -1,24 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_2019238136")
-
- // update collection data
- unmarshal({
- "createRule": "@request.method = \"POST\"",
- "listRule": "@request.method = \"GET\"",
- "viewRule": "@request.method = \"GET\""
- }, collection)
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_2019238136")
-
- // update collection data
- unmarshal({
- "createRule": null,
- "listRule": null,
- "viewRule": null
- }, collection)
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1777393662_updated_posts.js b/backend/pb_migrations/1777393662_updated_posts.js
deleted file mode 100644
index 9207d18..0000000
--- a/backend/pb_migrations/1777393662_updated_posts.js
+++ /dev/null
@@ -1,42 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_1125843985")
-
- // update field
- collection.fields.addAt(9, new Field({
- "autogeneratePattern": "",
- "hidden": false,
- "id": "text1864383797",
- "max": 0,
- "min": 0,
- "name": "readTime",
- "pattern": "",
- "presentable": false,
- "primaryKey": false,
- "required": false,
- "system": false,
- "type": "text"
- }))
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_1125843985")
-
- // update field
- collection.fields.addAt(9, new Field({
- "autogeneratePattern": "",
- "hidden": false,
- "id": "text1864383797",
- "max": 0,
- "min": 0,
- "name": "readmeTime",
- "pattern": "",
- "presentable": false,
- "primaryKey": false,
- "required": false,
- "system": false,
- "type": "text"
- }))
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1777466303_created_site_visitors.js b/backend/pb_migrations/1777466303_created_site_visitors.js
deleted file mode 100644
index 3e5cd05..0000000
--- a/backend/pb_migrations/1777466303_created_site_visitors.js
+++ /dev/null
@@ -1,103 +0,0 @@
-///
-migrate((app) => {
- const collection = new Collection({
- "createRule": null,
- "deleteRule": null,
- "fields": [
- {
- "autogeneratePattern": "[a-z0-9]{15}",
- "help": "",
- "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": "",
- "help": "",
- "hidden": false,
- "id": "text791980464",
- "max": 0,
- "min": 0,
- "name": "visitor_hash",
- "pattern": "",
- "presentable": false,
- "primaryKey": false,
- "required": false,
- "system": false,
- "type": "text"
- },
- {
- "autogeneratePattern": "",
- "help": "",
- "hidden": false,
- "id": "text2783163181",
- "max": 0,
- "min": 0,
- "name": "ip",
- "pattern": "",
- "presentable": false,
- "primaryKey": false,
- "required": false,
- "system": false,
- "type": "text"
- },
- {
- "autogeneratePattern": "",
- "help": "",
- "hidden": false,
- "id": "text3293145029",
- "max": 0,
- "min": 0,
- "name": "user_agent",
- "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_2651661972",
- "indexes": [],
- "listRule": null,
- "name": "site_visitors",
- "system": false,
- "type": "base",
- "updateRule": null,
- "viewRule": null
- });
-
- return app.save(collection);
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_2651661972");
-
- return app.delete(collection);
-})
diff --git a/backend/pb_migrations/1777466913_updated_site_visitors.js b/backend/pb_migrations/1777466913_updated_site_visitors.js
deleted file mode 100644
index 842c27a..0000000
--- a/backend/pb_migrations/1777466913_updated_site_visitors.js
+++ /dev/null
@@ -1,28 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_2651661972")
-
- // update collection data
- unmarshal({
- "createRule": "",
- "deleteRule": "@request.auth.id != \"\"",
- "listRule": "@request.auth.id != \"\"",
- "updateRule": "@request.auth.id != \"\"",
- "viewRule": "@request.auth.id != \"\" "
- }, collection)
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_2651661972")
-
- // update collection data
- unmarshal({
- "createRule": null,
- "deleteRule": null,
- "listRule": null,
- "updateRule": null,
- "viewRule": null
- }, collection)
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1777466930_updated_site_visitors.js b/backend/pb_migrations/1777466930_updated_site_visitors.js
deleted file mode 100644
index e650eff..0000000
--- a/backend/pb_migrations/1777466930_updated_site_visitors.js
+++ /dev/null
@@ -1,20 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_2651661972")
-
- // update collection data
- unmarshal({
- "createRule": "@request.method = \"POST\""
- }, collection)
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_2651661972")
-
- // update collection data
- unmarshal({
- "createRule": ""
- }, collection)
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1777468200_updated_site_visitors.js b/backend/pb_migrations/1777468200_updated_site_visitors.js
deleted file mode 100644
index d36f60c..0000000
--- a/backend/pb_migrations/1777468200_updated_site_visitors.js
+++ /dev/null
@@ -1,20 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_2651661972")
-
- // update collection data
- unmarshal({
- "createRule": ""
- }, collection)
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_2651661972")
-
- // update collection data
- unmarshal({
- "createRule": "@request.method = \"POST\""
- }, collection)
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1777472256_updated_site_visitors.js b/backend/pb_migrations/1777472256_updated_site_visitors.js
deleted file mode 100644
index 735b763..0000000
--- a/backend/pb_migrations/1777472256_updated_site_visitors.js
+++ /dev/null
@@ -1,22 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_2651661972")
-
- // update collection data
- unmarshal({
- "listRule": "",
- "viewRule": ""
- }, collection)
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_2651661972")
-
- // update collection data
- unmarshal({
- "listRule": "@request.auth.id != \"\"",
- "viewRule": "@request.auth.id != \"\" "
- }, collection)
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1778153189_created_site_stats.js b/backend/pb_migrations/1778153189_created_site_stats.js
deleted file mode 100644
index 8ed181b..0000000
--- a/backend/pb_migrations/1778153189_created_site_stats.js
+++ /dev/null
@@ -1,96 +0,0 @@
-///
-migrate((app) => {
- const collection = new Collection({
- "createRule": null,
- "deleteRule": null,
- "fields": [
- {
- "autogeneratePattern": "[a-z0-9]{15}",
- "help": "",
- "hidden": false,
- "id": "text3208210256",
- "max": 15,
- "min": 15,
- "name": "id",
- "pattern": "^[a-z0-9]+$",
- "presentable": false,
- "primaryKey": true,
- "required": true,
- "system": true,
- "type": "text"
- },
- {
- "help": "",
- "hidden": false,
- "id": "number3017057989",
- "max": null,
- "min": null,
- "name": "today",
- "onlyInt": false,
- "presentable": false,
- "required": false,
- "system": false,
- "type": "number"
- },
- {
- "help": "",
- "hidden": false,
- "id": "number3257917790",
- "max": null,
- "min": null,
- "name": "total",
- "onlyInt": false,
- "presentable": false,
- "required": false,
- "system": false,
- "type": "number"
- },
- {
- "help": "",
- "hidden": false,
- "id": "date852920662",
- "max": "",
- "min": "",
- "name": "last_reset",
- "presentable": false,
- "required": false,
- "system": false,
- "type": "date"
- },
- {
- "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_1840088895",
- "indexes": [],
- "listRule": null,
- "name": "site_stats",
- "system": false,
- "type": "base",
- "updateRule": null,
- "viewRule": null
- });
-
- return app.save(collection);
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_1840088895");
-
- return app.delete(collection);
-})
diff --git a/backend/pb_migrations/1778153252_updated_site_stats.js b/backend/pb_migrations/1778153252_updated_site_stats.js
deleted file mode 100644
index 22be94e..0000000
--- a/backend/pb_migrations/1778153252_updated_site_stats.js
+++ /dev/null
@@ -1,20 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_1840088895")
-
- // update collection data
- unmarshal({
- "updateRule": ""
- }, collection)
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_1840088895")
-
- // update collection data
- unmarshal({
- "updateRule": null
- }, collection)
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1778153269_updated_site_stats.js b/backend/pb_migrations/1778153269_updated_site_stats.js
deleted file mode 100644
index 08d87a4..0000000
--- a/backend/pb_migrations/1778153269_updated_site_stats.js
+++ /dev/null
@@ -1,20 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_1840088895")
-
- // update collection data
- unmarshal({
- "updateRule": "@request.auth.id != \"\""
- }, collection)
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_1840088895")
-
- // update collection data
- unmarshal({
- "updateRule": ""
- }, collection)
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1778153329_deleted_site_visitors.js b/backend/pb_migrations/1778153329_deleted_site_visitors.js
deleted file mode 100644
index 9873c22..0000000
--- a/backend/pb_migrations/1778153329_deleted_site_visitors.js
+++ /dev/null
@@ -1,103 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_2651661972");
-
- return app.delete(collection);
-}, (app) => {
- const collection = new Collection({
- "createRule": "",
- "deleteRule": "@request.auth.id != \"\"",
- "fields": [
- {
- "autogeneratePattern": "[a-z0-9]{15}",
- "help": "",
- "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": "",
- "help": "",
- "hidden": false,
- "id": "text791980464",
- "max": 0,
- "min": 0,
- "name": "visitor_hash",
- "pattern": "",
- "presentable": false,
- "primaryKey": false,
- "required": false,
- "system": false,
- "type": "text"
- },
- {
- "autogeneratePattern": "",
- "help": "",
- "hidden": false,
- "id": "text2783163181",
- "max": 0,
- "min": 0,
- "name": "ip",
- "pattern": "",
- "presentable": false,
- "primaryKey": false,
- "required": false,
- "system": false,
- "type": "text"
- },
- {
- "autogeneratePattern": "",
- "help": "",
- "hidden": false,
- "id": "text3293145029",
- "max": 0,
- "min": 0,
- "name": "user_agent",
- "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_2651661972",
- "indexes": [],
- "listRule": "",
- "name": "site_visitors",
- "system": false,
- "type": "base",
- "updateRule": "@request.auth.id != \"\"",
- "viewRule": ""
- });
-
- return app.save(collection);
-})
diff --git a/backend/pb_migrations/1778153500_updated_site_stats.js b/backend/pb_migrations/1778153500_updated_site_stats.js
deleted file mode 100644
index 3997a66..0000000
--- a/backend/pb_migrations/1778153500_updated_site_stats.js
+++ /dev/null
@@ -1,26 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_1840088895")
-
- // update collection data
- unmarshal({
- "createRule": "",
- "deleteRule": "",
- "listRule": "",
- "viewRule": ""
- }, collection)
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_1840088895")
-
- // update collection data
- unmarshal({
- "createRule": null,
- "deleteRule": null,
- "listRule": null,
- "viewRule": null
- }, collection)
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1778154554_updated_posts.js b/backend/pb_migrations/1778154554_updated_posts.js
deleted file mode 100644
index 96c9854..0000000
--- a/backend/pb_migrations/1778154554_updated_posts.js
+++ /dev/null
@@ -1,45 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_1125843985")
-
- // add field
- collection.fields.addAt(13, new Field({
- "help": "",
- "hidden": false,
- "id": "number1269103533",
- "max": null,
- "min": null,
- "name": "today_views",
- "onlyInt": false,
- "presentable": false,
- "required": false,
- "system": false,
- "type": "number"
- }))
-
- // add field
- collection.fields.addAt(14, new Field({
- "help": "",
- "hidden": false,
- "id": "date852920662",
- "max": "",
- "min": "",
- "name": "last_reset",
- "presentable": false,
- "required": false,
- "system": false,
- "type": "date"
- }))
-
- return app.save(collection)
-}, (app) => {
- const collection = app.findCollectionByNameOrId("pbc_1125843985")
-
- // remove field
- collection.fields.removeById("number1269103533")
-
- // remove field
- collection.fields.removeById("date852920662")
-
- return app.save(collection)
-})
diff --git a/backend/pb_migrations/1778154579_deleted_post_views.js b/backend/pb_migrations/1778154579_deleted_post_views.js
deleted file mode 100644
index fae39fc..0000000
--- a/backend/pb_migrations/1778154579_deleted_post_views.js
+++ /dev/null
@@ -1,117 +0,0 @@
-///
-migrate((app) => {
- const collection = app.findCollectionByNameOrId("pbc_2019238136");
-
- return app.delete(collection);
-}, (app) => {
- const collection = new Collection({
- "createRule": "@request.method = \"POST\"",
- "deleteRule": "@request.auth.id != \"\"",
- "fields": [
- {
- "autogeneratePattern": "[a-z0-9]{15}",
- "help": "",
- "hidden": false,
- "id": "text3208210256",
- "max": 15,
- "min": 15,
- "name": "id",
- "pattern": "^[a-z0-9]+$",
- "presentable": false,
- "primaryKey": true,
- "required": true,
- "system": true,
- "type": "text"
- },
- {
- "cascadeDelete": false,
- "collectionId": "pbc_1125843985",
- "help": "",
- "hidden": false,
- "id": "relation1519021197",
- "maxSelect": 0,
- "minSelect": 0,
- "name": "post",
- "presentable": false,
- "required": false,
- "system": false,
- "type": "relation"
- },
- {
- "autogeneratePattern": "",
- "help": "",
- "hidden": false,
- "id": "text791980464",
- "max": 0,
- "min": 0,
- "name": "visitor_hash",
- "pattern": "",
- "presentable": false,
- "primaryKey": false,
- "required": false,
- "system": false,
- "type": "text"
- },
- {
- "autogeneratePattern": "",
- "help": "",
- "hidden": false,
- "id": "text2783163181",
- "max": 0,
- "min": 0,
- "name": "ip",
- "pattern": "",
- "presentable": false,
- "primaryKey": false,
- "required": false,
- "system": false,
- "type": "text"
- },
- {
- "autogeneratePattern": "",
- "help": "",
- "hidden": false,
- "id": "text3293145029",
- "max": 0,
- "min": 0,
- "name": "user_agent",
- "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_2019238136",
- "indexes": [],
- "listRule": "@request.method = \"GET\"",
- "name": "post_views",
- "system": false,
- "type": "base",
- "updateRule": "@request.auth.id != \"\"",
- "viewRule": "@request.method = \"GET\""
- });
-
- return app.save(collection);
-})