From 9e2107ea9cef7d6107e3f2bebd77dbe8a29e4ac8 Mon Sep 17 00:00:00 2001 From: ivamp Date: Sun, 21 Jul 2024 17:24:05 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=20=E5=A4=9A=E4=BD=99?= =?UTF-8?q?=E7=9A=84=20name=20=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...240721084724_remove_name_field_from_document_blocks.sql | 7 +++++++ internal/migrations/atlas.sum | 5 +++-- 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 internal/migrations/20240721084724_remove_name_field_from_document_blocks.sql diff --git a/internal/migrations/20240721084724_remove_name_field_from_document_blocks.sql b/internal/migrations/20240721084724_remove_name_field_from_document_blocks.sql new file mode 100644 index 0000000..bda5f8e --- /dev/null +++ b/internal/migrations/20240721084724_remove_name_field_from_document_blocks.sql @@ -0,0 +1,7 @@ +-- +goose Up +-- drop name column from document_blocks table +ALTER TABLE "document_blocks" DROP COLUMN "name"; + +-- +goose Down +-- reverse: create name column in document_blocks table +ALTER TABLE "document_blocks" ADD COLUMN "name" VARCHAR(255); diff --git a/internal/migrations/atlas.sum b/internal/migrations/atlas.sum index 2de6599..6c89a44 100644 --- a/internal/migrations/atlas.sum +++ b/internal/migrations/atlas.sum @@ -1,2 +1,3 @@ -h1:hDIlYDlNwP2WQt4WZ9vaeH5D8IAoeLPMBHidHnSKaIs= -20240720155522_init.sql h1:CKqDLw2sVT+NMqnmrvwtkmbHwNFJTUbdR5q0OtoxF1k= +h1:i8hOFFa2SFOjNMtOo1eFw1/d9UpiSBEi2XMeAacMcEA= +20240720155522_init.sql h1:EV/WhsF30qL+Q4kf1mhNxGP0KQpbVxMhjzUmG1pOEdQ= +20240721084724_remove_name_field_from_document_blocks.sql h1:V/+wh2/7HshCdZNTo4xrAVG7WF8HlcRIKa8285zy2K8=