From 49f7c8253e37e87ace614f39186541bd266c1a94 Mon Sep 17 00:00:00 2001 From: misterkirill Date: Tue, 15 Jul 2025 19:58:30 +0500 Subject: [PATCH] fix: remove default order value --- drizzle/0001_complex_dreadnoughts.sql | 1 + drizzle/meta/0001_snapshot.json | 187 ++++++++++++++++++++++++++ drizzle/meta/_journal.json | 7 + 3 files changed, 195 insertions(+) create mode 100644 drizzle/0001_complex_dreadnoughts.sql create mode 100644 drizzle/meta/0001_snapshot.json diff --git a/drizzle/0001_complex_dreadnoughts.sql b/drizzle/0001_complex_dreadnoughts.sql new file mode 100644 index 0000000..6a55200 --- /dev/null +++ b/drizzle/0001_complex_dreadnoughts.sql @@ -0,0 +1 @@ +ALTER TABLE "blocks" ALTER COLUMN "order" DROP DEFAULT; \ No newline at end of file diff --git a/drizzle/meta/0001_snapshot.json b/drizzle/meta/0001_snapshot.json new file mode 100644 index 0000000..16dd31b --- /dev/null +++ b/drizzle/meta/0001_snapshot.json @@ -0,0 +1,187 @@ +{ + "id": "b75921d7-7437-4ff8-980f-8450655b4b64", + "prevId": "20af197f-8cc5-49a7-9066-ee214573f6ce", + "version": "7", + "dialect": "postgresql", + "tables": { + "public.blocks": { + "name": "blocks", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "tag": { + "name": "tag", + "type": "varchar(100)", + "primaryKey": false, + "notNull": true, + "default": "''" + }, + "lines": { + "name": "lines", + "type": "json", + "primaryKey": false, + "notNull": true, + "default": "'[\"\",\"\",\"\",\"\"]'::json" + }, + "isLocked": { + "name": "isLocked", + "type": "boolean", + "primaryKey": false, + "notNull": true, + "default": false + }, + "order": { + "name": "order", + "type": "integer", + "primaryKey": false, + "notNull": true + }, + "noteId": { + "name": "noteId", + "type": "uuid", + "primaryKey": false, + "notNull": true + } + }, + "indexes": {}, + "foreignKeys": { + "blocks_noteId_notes_id_fk": { + "name": "blocks_noteId_notes_id_fk", + "tableFrom": "blocks", + "tableTo": "notes", + "columnsFrom": [ + "noteId" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.notes": { + "name": "notes", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "title": { + "name": "title", + "type": "varchar(50)", + "primaryKey": false, + "notNull": true, + "default": "'Untitled'" + }, + "creationTime": { + "name": "creationTime", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "lastEdited": { + "name": "lastEdited", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "authorId": { + "name": "authorId", + "type": "uuid", + "primaryKey": false, + "notNull": true + } + }, + "indexes": {}, + "foreignKeys": { + "notes_authorId_users_id_fk": { + "name": "notes_authorId_users_id_fk", + "tableFrom": "notes", + "tableTo": "users", + "columnsFrom": [ + "authorId" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.users": { + "name": "users", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "username": { + "name": "username", + "type": "varchar(50)", + "primaryKey": false, + "notNull": true + }, + "password": { + "name": "password", + "type": "varchar", + "primaryKey": false, + "notNull": true + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "users_username_unique": { + "name": "users_username_unique", + "nullsNotDistinct": false, + "columns": [ + "username" + ] + } + }, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + } + }, + "enums": {}, + "schemas": {}, + "sequences": {}, + "roles": {}, + "policies": {}, + "views": {}, + "_meta": { + "columns": {}, + "schemas": {}, + "tables": {} + } +} \ No newline at end of file diff --git a/drizzle/meta/_journal.json b/drizzle/meta/_journal.json index bbd262f..895a00b 100644 --- a/drizzle/meta/_journal.json +++ b/drizzle/meta/_journal.json @@ -8,6 +8,13 @@ "when": 1752532763005, "tag": "0000_cold_odin", "breakpoints": true + }, + { + "idx": 1, + "version": "7", + "when": 1752591486103, + "tag": "0001_complex_dreadnoughts", + "breakpoints": true } ] } \ No newline at end of file