add missing table "forward"

This commit is contained in:
Brenda Wallace 2009-12-09 13:12:29 +13:00
parent b139be6caf
commit 3e9c2d779a
2 changed files with 16 additions and 0 deletions

View File

@ -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 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_id integer /* comment 'location id if possible'*/;
ALTER TABLE profile ADD COLUMN location_ns integer /* comment 'namespace for location'*/; 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)
);

View File

@ -582,6 +582,8 @@ create table location_namespace (
); );
create table login_token ( create table login_token (
user_id integer not null /* comment 'user owning this token'*/ references "user" (id), user_id integer not null /* comment 'user owning this token'*/ references "user" (id),
token char(32) not null /* comment 'token useable for logging in'*/, token char(32) not null /* comment 'token useable for logging in'*/,
@ -591,3 +593,9 @@ create table login_token (
primary key (user_id) 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)
);