added missing columns in notice table
This commit is contained in:
parent
c3110ec8ac
commit
93ecccb8fb
|
@ -1,4 +1,5 @@
|
||||||
/* local and remote users have profiles */
|
/* local and remote users have profiles */
|
||||||
|
BEGIN;
|
||||||
|
|
||||||
create sequence profile_seq;
|
create sequence profile_seq;
|
||||||
create table profile (
|
create table profile (
|
||||||
|
@ -132,11 +133,14 @@ create table notice (
|
||||||
reply_to integer /* comment 'notice replied to (usually a guess)' */ references notice (id) ,
|
reply_to integer /* comment 'notice replied to (usually a guess)' */ references notice (id) ,
|
||||||
is_local integer default 0 /* comment 'notice was generated by a user' */,
|
is_local integer default 0 /* comment 'notice was generated by a user' */,
|
||||||
source varchar(32) /* comment 'source of comment, like "web", "im", or "clientname"' */,
|
source varchar(32) /* comment 'source of comment, like "web", "im", or "clientname"' */,
|
||||||
conversation integer /*id of root notice in this conversation' */ references notice (id)
|
conversation integer /*id of root notice in this conversation' */ references notice (id),
|
||||||
|
lat decimal(10,7) /* comment 'latitude'*/ ,
|
||||||
|
lon decimal(10,7) /* comment 'longitude'*/ ,
|
||||||
|
location_id integer /* comment 'location id if possible'*/ ,
|
||||||
|
location_ns integer /* comment 'namespace for location'*/
|
||||||
/* FULLTEXT(content) */
|
/* FULLTEXT(content) */
|
||||||
);
|
);
|
||||||
|
|
||||||
create index notice_profile_id_idx on notice using btree(profile_id,created,id);
|
create index notice_profile_id_idx on notice using btree(profile_id,created,id);
|
||||||
create index notice_created_idx on notice using btree(created);
|
create index notice_created_idx on notice using btree(created);
|
||||||
|
|
||||||
|
@ -579,3 +583,4 @@ create table login_token (
|
||||||
primary key (user_id)
|
primary key (user_id)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
ROLLBACK;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user