remove forward table from PostgreSQL scripts
This commit is contained in:
parent
a2fb1f5f9d
commit
344c99df02
|
@ -80,10 +80,3 @@ 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)
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|
|
@ -409,7 +409,6 @@ create table user_group (
|
||||||
mini_logo varchar(255) /* comment 'mini logo' */,
|
mini_logo varchar(255) /* comment 'mini logo' */,
|
||||||
design_id integer /*comment 'id of a design' */ references design(id),
|
design_id integer /*comment 'id of a design' */ references design(id),
|
||||||
|
|
||||||
|
|
||||||
created timestamp not null default CURRENT_TIMESTAMP /* comment 'date this record was created' */,
|
created timestamp not null default CURRENT_TIMESTAMP /* comment 'date this record was created' */,
|
||||||
modified timestamp /* comment 'date this record was modified' */
|
modified timestamp /* comment 'date this record was modified' */
|
||||||
|
|
||||||
|
@ -447,7 +446,6 @@ create table group_inbox (
|
||||||
);
|
);
|
||||||
create index group_inbox_created_idx on group_inbox using btree(created);
|
create index group_inbox_created_idx on group_inbox using btree(created);
|
||||||
|
|
||||||
|
|
||||||
/*attachments and URLs stuff */
|
/*attachments and URLs stuff */
|
||||||
create sequence file_seq;
|
create sequence file_seq;
|
||||||
create table file (
|
create table file (
|
||||||
|
@ -543,7 +541,6 @@ create table deleted_notice (
|
||||||
|
|
||||||
CREATE index deleted_notice_profile_id_idx on deleted_notice (profile_id);
|
CREATE index deleted_notice_profile_id_idx on deleted_notice (profile_id);
|
||||||
|
|
||||||
|
|
||||||
/* Textsearch stuff */
|
/* Textsearch stuff */
|
||||||
|
|
||||||
create index textsearch_idx on profile using gist(textsearch);
|
create index textsearch_idx on profile using gist(textsearch);
|
||||||
|
@ -551,7 +548,6 @@ create index noticecontent_idx on notice using gist(to_tsvector('english',conten
|
||||||
create trigger textsearchupdate before insert or update on profile for each row
|
create trigger textsearchupdate before insert or update on profile for each row
|
||||||
execute procedure tsvector_update_trigger(textsearch, 'pg_catalog.english', nickname, fullname, location, bio, homepage);
|
execute procedure tsvector_update_trigger(textsearch, 'pg_catalog.english', nickname, fullname, location, bio, homepage);
|
||||||
|
|
||||||
|
|
||||||
create table config (
|
create table config (
|
||||||
|
|
||||||
section varchar(32) /* comment 'configuration section'*/,
|
section varchar(32) /* comment 'configuration section'*/,
|
||||||
|
@ -582,8 +578,6 @@ 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'*/,
|
||||||
|
@ -593,9 +587,3 @@ 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)
|
|
||||||
);
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user