aboutsummaryrefslogtreecommitdiffstats
path: root/db/schema_0032-add-from_body-reference.sql
diff options
context:
space:
mode:
Diffstat (limited to 'db/schema_0032-add-from_body-reference.sql')
-rw-r--r--db/schema_0032-add-from_body-reference.sql6
1 files changed, 6 insertions, 0 deletions
diff --git a/db/schema_0032-add-from_body-reference.sql b/db/schema_0032-add-from_body-reference.sql
new file mode 100644
index 000000000..4fa526963
--- /dev/null
+++ b/db/schema_0032-add-from_body-reference.sql
@@ -0,0 +1,6 @@
+begin;
+
+ALTER TABLE users ADD CONSTRAINT users_from_body_fkey
+ FOREIGN KEY (from_body) REFERENCES body(id);
+
+commit;