Skip to content

Commit c617ad5

Browse files
authored
Add 'updated_at' column to subscriptions table
This removes the explicit ownership change on `set_updated_at()`. This line assumes the existence of user `postgres` (which does not in my case). It will be owned by the user that creates it and that is fine.
1 parent 47e2415 commit c617ad5

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

packages/sync-engine/src/database/migrations/0012_add_updated_at.sql

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ begin
88
end;
99
$$;
1010

11-
alter function set_updated_at() owner to postgres;
12-
1311
alter table stripe.subscriptions
1412
add updated_at timestamptz default timezone('utc'::text, now()) not null;
1513

0 commit comments

Comments
 (0)