From 62fb8d23f8d6a1aa0199b861a4c94164635e441d Mon Sep 17 00:00:00 2001 From: n0str Date: Fri, 20 Oct 2023 03:29:21 +0300 Subject: [PATCH] Fix migration typo --- migrations/tenant/0003-notes@camelcase-to-underscore.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrations/tenant/0003-notes@camelcase-to-underscore.sql b/migrations/tenant/0003-notes@camelcase-to-underscore.sql index c2a4abfb..a78b71d5 100644 --- a/migrations/tenant/0003-notes@camelcase-to-underscore.sql +++ b/migrations/tenant/0003-notes@camelcase-to-underscore.sql @@ -14,7 +14,7 @@ DO $$ BEGIN IF EXISTS(SELECT * FROM information_schema.columns - WHERE table_name='notes' and column_name='createdAt') + WHERE table_name='notes' and column_name='updatedAt') THEN ALTER TABLE "public"."notes" RENAME COLUMN "updatedAt" TO "updated_at"; END IF;