From eb186160a58071c64accb9d093f4f1dd1e19df6f Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 5 Dec 2022 01:49:13 +0200 Subject: [PATCH] add migration file --- migrations/20221205-profile-wall.sql | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 migrations/20221205-profile-wall.sql diff --git a/migrations/20221205-profile-wall.sql b/migrations/20221205-profile-wall.sql new file mode 100644 index 000000000..7efd0ec70 --- /dev/null +++ b/migrations/20221205-profile-wall.sql @@ -0,0 +1,5 @@ +alter table comments add column wall_user_id int; + +alter table only comments add constraint wall_user_id_fkey foreign key (wall_user_id) references users(id); + +create index fki_wall_user_id_fkey on public.comments using btree (wall_user_id);