From 0b312287f1121a39fdc28805433c932e3eb668cf Mon Sep 17 00:00:00 2001 From: Taron Date: Mon, 16 Sep 2024 11:26:13 +0400 Subject: [PATCH] regenerate migrations --- ...taskmaster.sql => 0000_slow_chameleon.sql} | 0 server/migrations/0004_misty_gorilla_man.sql | 8 - server/migrations/meta/0000_snapshot.json | 2 +- server/migrations/meta/0004_snapshot.json | 1250 ----------------- server/migrations/meta/_journal.json | 11 +- 5 files changed, 3 insertions(+), 1268 deletions(-) rename server/migrations/{0000_nasty_taskmaster.sql => 0000_slow_chameleon.sql} (100%) delete mode 100644 server/migrations/0004_misty_gorilla_man.sql delete mode 100644 server/migrations/meta/0004_snapshot.json diff --git a/server/migrations/0000_nasty_taskmaster.sql b/server/migrations/0000_slow_chameleon.sql similarity index 100% rename from server/migrations/0000_nasty_taskmaster.sql rename to server/migrations/0000_slow_chameleon.sql diff --git a/server/migrations/0004_misty_gorilla_man.sql b/server/migrations/0004_misty_gorilla_man.sql deleted file mode 100644 index 435bff98d..000000000 --- a/server/migrations/0004_misty_gorilla_man.sql +++ /dev/null @@ -1,8 +0,0 @@ -CREATE TABLE `refresh_tokens` ( - `id` text PRIMARY KEY NOT NULL, - `user_id` text, - `token` text NOT NULL, - FOREIGN KEY (`user_id`) REFERENCES `user`(`id`) ON UPDATE no action ON DELETE cascade -); ---> statement-breakpoint -ALTER TABLE `user` DROP COLUMN `token`; \ No newline at end of file diff --git a/server/migrations/meta/0000_snapshot.json b/server/migrations/meta/0000_snapshot.json index e6c8977f9..971f810a7 100644 --- a/server/migrations/meta/0000_snapshot.json +++ b/server/migrations/meta/0000_snapshot.json @@ -1,7 +1,7 @@ { "version": "5", "dialect": "sqlite", - "id": "1835ff6c-2094-41b6-9877-e6d31c92f32c", + "id": "272d5547-a53b-49e0-ab2c-7133f78c3514", "prevId": "00000000-0000-0000-0000-000000000000", "tables": { "conversation": { diff --git a/server/migrations/meta/0004_snapshot.json b/server/migrations/meta/0004_snapshot.json deleted file mode 100644 index 980f5c16d..000000000 --- a/server/migrations/meta/0004_snapshot.json +++ /dev/null @@ -1,1250 +0,0 @@ -{ - "version": "5", - "dialect": "sqlite", - "id": "25256b91-d058-4509-ab3a-a877c2ce278a", - "prevId": "57e2d274-a728-4d09-9aff-74d3b92399fa", - "tables": { - "conversation": { - "name": "conversation", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true, - "autoincrement": false - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "itemTypeId": { - "name": "itemTypeId", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "history": { - "name": "history", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "created_at": { - "name": "created_at", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false, - "default": "CURRENT_TIMESTAMP" - }, - "updated_at": { - "name": "updated_at", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false, - "default": "CURRENT_TIMESTAMP" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {} - }, - "geojson": { - "name": "geojson", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true, - "autoincrement": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "geo_json_id": { - "name": "geo_json_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "properties": { - "name": "properties", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "geometry": { - "name": "geometry", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "created_at": { - "name": "created_at", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false, - "default": "CURRENT_TIMESTAMP" - }, - "updated_at": { - "name": "updated_at", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false, - "default": "CURRENT_TIMESTAMP" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {} - }, - "item": { - "name": "item", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true, - "autoincrement": false - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "weight": { - "name": "weight", - "type": "real", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "quantity": { - "name": "quantity", - "type": "integer", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "unit": { - "name": "unit", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "category_id": { - "name": "category_id", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "owner_id": { - "name": "owner_id", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "global": { - "name": "global", - "type": "integer", - "primaryKey": false, - "notNull": false, - "autoincrement": false, - "default": false - }, - "created_at": { - "name": "created_at", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false, - "default": "CURRENT_TIMESTAMP" - }, - "updated_at": { - "name": "updated_at", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false, - "default": "CURRENT_TIMESTAMP" - } - }, - "indexes": {}, - "foreignKeys": { - "item_category_id_item_category_id_fk": { - "name": "item_category_id_item_category_id_fk", - "tableFrom": "item", - "tableTo": "item_category", - "columnsFrom": [ - "category_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "item_owner_id_user_id_fk": { - "name": "item_owner_id_user_id_fk", - "tableFrom": "item", - "tableTo": "user", - "columnsFrom": [ - "owner_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {} - }, - "item_category": { - "name": "item_category", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true, - "autoincrement": false - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "created_at": { - "name": "created_at", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false, - "default": "CURRENT_TIMESTAMP" - }, - "updated_at": { - "name": "updated_at", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false, - "default": "CURRENT_TIMESTAMP" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {} - }, - "item_owners": { - "name": "item_owners", - "columns": { - "item_id": { - "name": "item_id", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "owner_id": { - "name": "owner_id", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": { - "item_owners_item_id_item_id_fk": { - "name": "item_owners_item_id_item_id_fk", - "tableFrom": "item_owners", - "tableTo": "item", - "columnsFrom": [ - "item_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "item_owners_owner_id_user_id_fk": { - "name": "item_owners_owner_id_user_id_fk", - "tableFrom": "item_owners", - "tableTo": "user", - "columnsFrom": [ - "owner_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": { - "id": { - "columns": [ - "item_id", - "owner_id" - ], - "name": "id" - } - }, - "uniqueConstraints": {} - }, - "item_packs": { - "name": "item_packs", - "columns": { - "item_id": { - "name": "item_id", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "pack_id": { - "name": "pack_id", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": { - "item_packs_item_id_item_id_fk": { - "name": "item_packs_item_id_item_id_fk", - "tableFrom": "item_packs", - "tableTo": "item", - "columnsFrom": [ - "item_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "item_packs_pack_id_pack_id_fk": { - "name": "item_packs_pack_id_pack_id_fk", - "tableFrom": "item_packs", - "tableTo": "pack", - "columnsFrom": [ - "pack_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": { - "id": { - "columns": [ - "item_id", - "pack_id" - ], - "name": "id" - } - }, - "uniqueConstraints": {} - }, - "node": { - "name": "node", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true, - "autoincrement": false - }, - "osm_id": { - "name": "osm_id", - "type": "integer", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "lat": { - "name": "lat", - "type": "real", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "lon": { - "name": "lon", - "type": "real", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "tags": { - "name": "tags", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "created_at": { - "name": "created_at", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false, - "default": "CURRENT_TIMESTAMP" - }, - "updated_at": { - "name": "updated_at", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false, - "default": "CURRENT_TIMESTAMP" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {} - }, - "pack": { - "name": "pack", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true, - "autoincrement": false - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "owner_id": { - "name": "owner_id", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "is_public": { - "name": "is_public", - "type": "integer", - "primaryKey": false, - "notNull": false, - "autoincrement": false, - "default": false - }, - "grades": { - "name": "grades", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false, - "default": "'{\"weight\":\"\",\"essentialItems\":\"\",\"redundancyAndVersatility\":\"\"}'" - }, - "scores": { - "name": "scores", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false, - "default": "'{\"weightScore\":0,\"essentialItemsScore\":0,\"redundancyAndVersatilityScore\":0}'" - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false, - "default": "'pack'" - }, - "created_at": { - "name": "created_at", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false, - "default": "CURRENT_TIMESTAMP" - }, - "updated_at": { - "name": "updated_at", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false, - "default": "CURRENT_TIMESTAMP" - } - }, - "indexes": {}, - "foreignKeys": { - "pack_owner_id_user_id_fk": { - "name": "pack_owner_id_user_id_fk", - "tableFrom": "pack", - "tableTo": "user", - "columnsFrom": [ - "owner_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {} - }, - "refresh_tokens": { - "name": "refresh_tokens", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true, - "autoincrement": false - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "token": { - "name": "token", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": { - "refresh_tokens_user_id_user_id_fk": { - "name": "refresh_tokens_user_id_user_id_fk", - "tableFrom": "refresh_tokens", - "tableTo": "user", - "columnsFrom": [ - "user_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {} - }, - "relation": { - "name": "relation", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true, - "autoincrement": false - }, - "osm_id": { - "name": "osm_id", - "type": "integer", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "osm_type": { - "name": "osm_type", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false, - "default": "'relation'" - }, - "tags": { - "name": "tags", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "members": { - "name": "members", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "geo_json": { - "name": "geo_json", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "created_at": { - "name": "created_at", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false, - "default": "CURRENT_TIMESTAMP" - }, - "updated_at": { - "name": "updated_at", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false, - "default": "CURRENT_TIMESTAMP" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {} - }, - "template": { - "name": "template", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true, - "autoincrement": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "'pack'" - }, - "template_id": { - "name": "template_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "is_global_template": { - "name": "is_global_template", - "type": "integer", - "primaryKey": false, - "notNull": false, - "autoincrement": false, - "default": false - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "created_at": { - "name": "created_at", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false, - "default": "CURRENT_TIMESTAMP" - }, - "updated_at": { - "name": "updated_at", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false, - "default": "CURRENT_TIMESTAMP" - } - }, - "indexes": {}, - "foreignKeys": { - "template_created_by_user_id_fk": { - "name": "template_created_by_user_id_fk", - "tableFrom": "template", - "tableTo": "user", - "columnsFrom": [ - "created_by" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {} - }, - "trip": { - "name": "trip", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true, - "autoincrement": false - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "duration": { - "name": "duration", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "weather": { - "name": "weather", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "start_date": { - "name": "start_date", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "end_date": { - "name": "end_date", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "destination": { - "name": "destination", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "owner_id": { - "name": "owner_id", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "packs_id": { - "name": "packs_id", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "is_public": { - "name": "is_public", - "type": "integer", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false, - "default": "'trip'" - }, - "created_at": { - "name": "created_at", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false, - "default": "CURRENT_TIMESTAMP" - }, - "updated_at": { - "name": "updated_at", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false, - "default": "CURRENT_TIMESTAMP" - } - }, - "indexes": {}, - "foreignKeys": { - "trip_owner_id_user_id_fk": { - "name": "trip_owner_id_user_id_fk", - "tableFrom": "trip", - "tableTo": "user", - "columnsFrom": [ - "owner_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "trip_packs_id_pack_id_fk": { - "name": "trip_packs_id_pack_id_fk", - "tableFrom": "trip", - "tableTo": "pack", - "columnsFrom": [ - "packs_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {} - }, - "trip_geojsons": { - "name": "trip_geojsons", - "columns": { - "trip_id": { - "name": "trip_id", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "geojson_id": { - "name": "geojson_id", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": { - "trip_geojsons_trip_id_trip_id_fk": { - "name": "trip_geojsons_trip_id_trip_id_fk", - "tableFrom": "trip_geojsons", - "tableTo": "trip", - "columnsFrom": [ - "trip_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "trip_geojsons_geojson_id_geojson_id_fk": { - "name": "trip_geojsons_geojson_id_geojson_id_fk", - "tableFrom": "trip_geojsons", - "tableTo": "geojson", - "columnsFrom": [ - "geojson_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": { - "id": { - "columns": [ - "geojson_id", - "trip_id" - ], - "name": "id" - } - }, - "uniqueConstraints": {} - }, - "user": { - "name": "user", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true, - "autoincrement": false - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "password": { - "name": "password", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "google_id": { - "name": "google_id", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "code": { - "name": "code", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "is_certified_guide": { - "name": "is_certified_guide", - "type": "integer", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "password_reset_token": { - "name": "password_reset_token", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "password_reset_token_expiration": { - "name": "password_reset_token_expiration", - "type": "integer", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "offline_maps": { - "name": "offline_maps", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false, - "default": "'user'" - }, - "username": { - "name": "username", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "profile_image": { - "name": "profile_image", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "preferred_weather": { - "name": "preferred_weather", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false, - "default": "'celsius'" - }, - "preferred_weight": { - "name": "preferred_weight", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false, - "default": "'lb'" - }, - "created_at": { - "name": "created_at", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false, - "default": "CURRENT_TIMESTAMP" - }, - "updated_at": { - "name": "updated_at", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false, - "default": "CURRENT_TIMESTAMP" - } - }, - "indexes": { - "user_email_unique": { - "name": "user_email_unique", - "columns": [ - "email" - ], - "isUnique": true - }, - "user_username_unique": { - "name": "user_username_unique", - "columns": [ - "username" - ], - "isUnique": true - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {} - }, - "user_favorite_packs": { - "name": "user_favorite_packs", - "columns": { - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "pack_id": { - "name": "pack_id", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": { - "user_favorite_packs_user_id_user_id_fk": { - "name": "user_favorite_packs_user_id_user_id_fk", - "tableFrom": "user_favorite_packs", - "tableTo": "user", - "columnsFrom": [ - "user_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "user_favorite_packs_pack_id_pack_id_fk": { - "name": "user_favorite_packs_pack_id_pack_id_fk", - "tableFrom": "user_favorite_packs", - "tableTo": "pack", - "columnsFrom": [ - "pack_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": { - "id": { - "columns": [ - "pack_id", - "user_id" - ], - "name": "id" - } - }, - "uniqueConstraints": {} - }, - "way": { - "name": "way", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true, - "autoincrement": false - }, - "osm_id": { - "name": "osm_id", - "type": "integer", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "osm_type": { - "name": "osm_type", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "tags": { - "name": "tags", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "geo_json": { - "name": "geo_json", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "created_at": { - "name": "created_at", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false, - "default": "CURRENT_TIMESTAMP" - }, - "updated_at": { - "name": "updated_at", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false, - "default": "CURRENT_TIMESTAMP" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {} - }, - "way_nodes": { - "name": "way_nodes", - "columns": { - "way_id": { - "name": "way_id", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "node_id": { - "name": "node_id", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": { - "way_nodes_way_id_way_id_fk": { - "name": "way_nodes_way_id_way_id_fk", - "tableFrom": "way_nodes", - "tableTo": "way", - "columnsFrom": [ - "way_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "way_nodes_node_id_node_id_fk": { - "name": "way_nodes_node_id_node_id_fk", - "tableFrom": "way_nodes", - "tableTo": "node", - "columnsFrom": [ - "node_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": { - "id": { - "columns": [ - "node_id", - "way_id" - ], - "name": "id" - } - }, - "uniqueConstraints": {} - } - }, - "enums": {}, - "_meta": { - "schemas": {}, - "tables": {}, - "columns": {} - } -} \ No newline at end of file diff --git a/server/migrations/meta/_journal.json b/server/migrations/meta/_journal.json index ce1105227..12afe813b 100644 --- a/server/migrations/meta/_journal.json +++ b/server/migrations/meta/_journal.json @@ -5,15 +5,8 @@ { "idx": 0, "version": "5", - "when": 1726322827560, - "tag": "0000_nasty_taskmaster", - "breakpoints": true - }, - { - "idx": 4, - "version": "5", - "when": 1725521686790, - "tag": "0004_misty_gorilla_man", + "when": 1726470237246, + "tag": "0000_slow_chameleon", "breakpoints": true } ]