From ab91dd40617cdbf63546cab56ba1f4687468bfce Mon Sep 17 00:00:00 2001 From: Viki Val Date: Thu, 27 Jun 2024 14:57:22 +0300 Subject: [PATCH] :card_file_box: base_uri --- db/migrations/1719489409922-Data.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 db/migrations/1719489409922-Data.js diff --git a/db/migrations/1719489409922-Data.js b/db/migrations/1719489409922-Data.js new file mode 100644 index 00000000..63501ed5 --- /dev/null +++ b/db/migrations/1719489409922-Data.js @@ -0,0 +1,11 @@ +module.exports = class Data1719489409922 { + name = 'Data1719489409922' + + async up(db) { + await db.query(`ALTER TABLE "collection_entity" ADD "base_uri" text`) + } + + async down(db) { + await db.query(`ALTER TABLE "collection_entity" DROP COLUMN "base_uri"`) + } +}