Skip to content

Commit

Permalink
Fix migration typo
Browse files Browse the repository at this point in the history
  • Loading branch information
n0str committed Oct 20, 2023
1 parent a285954 commit 62fb8d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion migrations/tenant/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 62fb8d2

Please sign in to comment.