summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrenda Wallace <shiny@cpan.org>2009-12-09 13:12:29 +1300
committerBrenda Wallace <shiny@cpan.org>2009-12-09 13:12:29 +1300
commit3e9c2d779a3d3e014e8900060c3a2632d9e7f138 (patch)
tree49ba7dfaf3853513ba6c9579fb9dd8dcd4b12dfe
parentb139be6caf39628834ca34f5f7e58c1e08a3ebf3 (diff)
add missing table "forward"
-rw-r--r--db/08to09_pg.sql8
-rw-r--r--db/statusnet_pg.sql8
2 files changed, 16 insertions, 0 deletions
diff --git a/db/08to09_pg.sql b/db/08to09_pg.sql
index ee590b52f..4f8281bc3 100644
--- a/db/08to09_pg.sql
+++ b/db/08to09_pg.sql
@@ -79,3 +79,11 @@ ALTER TABLE profile ADD COLUMN lat decimal(10,7) /*comment 'latitude'*/ ;
ALTER TABLE profile ADD COLUMN lon decimal(10,7) /*comment 'longitude'*/;
ALTER TABLE profile ADD COLUMN location_id integer /* comment 'location id if possible'*/;
ALTER TABLE profile ADD COLUMN location_ns integer /* comment 'namespace for location'*/;
+
+CREATE TABLE forward (
+ profile_id integer not null /*comment 'profile who forwarded the notice'*/ references profile (id),
+ notice_id integer not null /*comment 'notice they forwarded'*/ references notice (id),
+ created timestamp not null /*comment 'date this record was created'*/ DEFAULT CURRENT_TIMESTAMP,
+ PRIMARY KEY (profile_id, notice_id)
+);
+
diff --git a/db/statusnet_pg.sql b/db/statusnet_pg.sql
index 92546c814..6bcc27885 100644
--- a/db/statusnet_pg.sql
+++ b/db/statusnet_pg.sql
@@ -582,6 +582,8 @@ create table location_namespace (
);
+
+
create table login_token (
user_id integer not null /* comment 'user owning this token'*/ references "user" (id),
token char(32) not null /* comment 'token useable for logging in'*/,
@@ -591,3 +593,9 @@ create table login_token (
primary key (user_id)
);
+CREATE TABLE forward (
+ profile_id integer not null /*comment 'profile who forwarded the notice'*/ references profile (id),
+ notice_id integer not null /*comment 'notice they forwarded'*/ references notice (id),
+ created timestamp not null /*comment 'date this record was created'*/ DEFAULT CURRENT_TIMESTAMP,
+ PRIMARY KEY (profile_id, notice_id)
+);