]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - db/08to09_pg.sql
Merge branch 'testing' of git@gitorious.org:statusnet/mainline into testing
[quix0rs-gnu-social.git] / db / 08to09_pg.sql
index 4f8281bc3eaa49eec0ab0a6426dc629dbf8eac49..2eac5dadf38bf4a5cc609871ff811fa619969725 100644 (file)
@@ -74,16 +74,10 @@ ALTER TABLE notice ADD COLUMN lat decimal(10, 7) /* comment 'latitude'*/;
 ALTER TABLE notice ADD COLUMN lon decimal(10,7) /* comment 'longitude'*/;
 ALTER TABLE notice ADD COLUMN location_id integer /* comment 'location id if possible'*/ ;
 ALTER TABLE notice ADD COLUMN location_ns integer /* comment 'namespace for location'*/;
+ALTER TABLE notice ADD COLUMN repeat_of integer /* comment 'notice this is a repeat of' */ references notice (id);
 
 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)
-);
-