forked from GNUsocial/gnu-social
* master: (67 commits) Ticket 2038: fix bad bug tracker link Fix regression in group posting: bug introduced in commit 1319002e1519fafb0e82fbfd2d2723abdb3112e7. Need to use actual profile object rather than an id on a variable that doesn't exist when checking blocks :D Log database errors when saving notice_inbox entries Drop the username from the log id for now; seems to trigger an error loop in some circumstances request id on logs... pid + random id per web request + username + method + url Add OpenID ini info back into statusnet.ini as a stopgap until we can Some changes to the OpenID DataObjects to make them emit the exact same OpenID plugin should set 'user_openid.display' as unique key Remove relationship: user_openid.user_id -> user.id. I don't think this Have OpenID plugin DataObjects emit their own .ini info Revert "Allow plugin DB_DataObject classes to not have to use the .ini file by overriding keys(), table(), and sequenceKey() for them" Catch and report exceptions from notice_to_omb_notice() instead of letting the OMB queue handler die. Fix regression in remote subscription; added hasRole() shadow method on Remote_profile. Fix fatal error on OMB subscription for first-timers Remove annoying log msg Drop error message on setlocale() failure; this is harmless, since we actually have a working locale set up. Catch uncaught exception Fixed bug where reply-sync bit wasn't getting saved Forgot to render the nav menu when on FB Connect login tab Facebook plugin no longer takes over Login and Connect settings nav menus ... Conflicts: db/08to09_pg.sql db/statusnet_pg.sql locale/pt_BR/LC_MESSAGES/statusnet.mo plugins/Mapstraction/MapstractionPlugin.php
63 lines
2.1 KiB
SQL
63 lines
2.1 KiB
SQL
-- SQL commands to update an 0.8.x version of Laconica
|
|
-- to 0.9.x.
|
|
|
|
--these are just comments
|
|
/*
|
|
alter table notice
|
|
modify column content text comment 'update content';
|
|
|
|
alter table message
|
|
modify column content text comment 'message content';
|
|
|
|
alter table profile
|
|
modify column bio text comment 'descriptive biography';
|
|
|
|
alter table user_group
|
|
modify column description text comment 'group description';
|
|
*/
|
|
|
|
alter table file_oembed
|
|
add column mimetype varchar(50) /*comment 'mime type of resource'*/;
|
|
|
|
create table config (
|
|
|
|
section varchar(32) /* comment 'configuration section'*/,
|
|
setting varchar(32) /* comment 'configuration setting'*/,
|
|
value varchar(255) /* comment 'configuration value'*/,
|
|
|
|
primary key (section, setting)
|
|
|
|
);
|
|
|
|
create table profile_role (
|
|
|
|
profile_id integer not null /* comment 'account having the role'*/ references profile (id),
|
|
role varchar(32) not null /* comment 'string representing the role'*/,
|
|
created timestamp /* not null comment 'date the role was granted'*/,
|
|
|
|
primary key (profile_id, role)
|
|
|
|
);
|
|
|
|
DROP index fave_user_id_idx;
|
|
CREATE index fave_user_id_idx on fave (user_id,modified);
|
|
|
|
DROP index subscription_subscriber_idx;
|
|
CREATE index subscription_subscriber_idx ON subscription (subscriber,created);
|
|
|
|
DROP index subscription_subscribed_idx;
|
|
CREATE index subscription_subscribed_idx ON subscription (subscribed,created);
|
|
|
|
DROP index notice_profile_id_idx;
|
|
CREATE index notice_profile_id_idx ON notice (profile_id,created,id);
|
|
|
|
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 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'*/;
|
|
|