]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - db/statusnet_pg.sql
add missing table "forward"
[quix0rs-gnu-social.git] / db / statusnet_pg.sql
index 92546c814d696b544e089f7a57ecbfbf946b1399..6bcc2788599f2c0609eaeaec432631262664b465 100644 (file)
@@ -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)
+);