From a4c18dfd4492e61c4025c378a68a0d3511308b89 Mon Sep 17 00:00:00 2001
From: Jeremy Kerr <jk@ozlabs.org>
Date: Tue, 10 Aug 2010 11:22:01 +0800
Subject: sql: Add uncommitted migration scripts

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
---
 lib/sql/migration/003-add-comment-parent.sql | 7 +++++++
 1 file changed, 7 insertions(+)
 create mode 100644 lib/sql/migration/003-add-comment-parent.sql

(limited to 'lib/sql/migration/003-add-comment-parent.sql')

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;
-- 
cgit v1.2.3

