diff options
Diffstat (limited to 'lib/sql/migration/003-add-comment-parent.sql')
-rw-r--r-- | lib/sql/migration/003-add-comment-parent.sql | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/sql/migration/003-add-comment-parent.sql b/lib/sql/migration/003-add-comment-parent.sql new file mode 100644 index 0000000..e6f9f64 --- /dev/null +++ b/lib/sql/migration/003-add-comment-parent.sql @@ -0,0 +1,7 @@ +BEGIN; +ALTER TABLE "patchwork_comment" ADD COLUMN "parent_id" integer NULL; +ALTER TABLE "patchwork_comment" ADD CONSTRAINT parent_id_refs_id_7b721867 + FOREIGN KEY ("parent_id") + REFERENCES "patchwork_comment" ("id") + DEFERRABLE INITIALLY DEFERRED; +COMMIT; |