aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2012-03-19 18:07:01 +0000
committerStruan Donald <struan@exo.org.uk>2012-03-19 18:07:01 +0000
commit246303b1e234fbde17775054859af4d6fe7e4a80 (patch)
tree057716b518b7a5248d9d582b9c2a4a6055038790 /db
parentb0caccf00ebbef40fbaf4a57c537c31f8393aa4f (diff)
add external id to comments table
Diffstat (limited to 'db')
-rw-r--r--db/schema.sql3
-rw-r--r--db/schema_0013-add_external_id_to_comment.sql6
2 files changed, 8 insertions, 1 deletions
diff --git a/db/schema.sql b/db/schema.sql
index 395d1c07b..d54cecd5a 100644
--- a/db/schema.sql
+++ b/db/schema.sql
@@ -303,9 +303,10 @@ create table comment (
or problem_state = 'fixed'
or problem_state = 'fixed - council'
or problem_state = 'fixed - user'
- )
+ ),
-- other fields? one to indicate whether this was written by the council
-- and should be highlighted in the display?
+ external_id text
);
create index comment_user_id_idx on comment(user_id);
diff --git a/db/schema_0013-add_external_id_to_comment.sql b/db/schema_0013-add_external_id_to_comment.sql
new file mode 100644
index 000000000..a1cd11c3f
--- /dev/null
+++ b/db/schema_0013-add_external_id_to_comment.sql
@@ -0,0 +1,6 @@
+begin;
+
+ALTER TABLE comment
+ ADD COLUMN external_id TEXT;
+
+commit;