add beta5 to beta6 script
This commit is contained in:
parent
254e210763
commit
00aba4a907
28
db/beta5tobeta6.sql
Normal file
28
db/beta5tobeta6.sql
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
alter table oauth_application
|
||||||
|
modify column name varchar(255) not null unique key comment 'name of the application',
|
||||||
|
modify column access_type tinyint default 0 comment 'access type, bit 1 = read, bit 2 = write';
|
||||||
|
|
||||||
|
alter table user_group
|
||||||
|
add column uri varchar(255) unique key comment 'universal identifier',
|
||||||
|
add column mainpage varchar(255) comment 'page for group info to link to',
|
||||||
|
drop index nickname;
|
||||||
|
|
||||||
|
create table conversation (
|
||||||
|
id integer auto_increment primary key comment 'unique identifier',
|
||||||
|
uri varchar(225) unique comment 'URI of the conversation',
|
||||||
|
created datetime not null comment 'date this record was created',
|
||||||
|
modified timestamp comment 'date this record was modified'
|
||||||
|
) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin;
|
||||||
|
|
||||||
|
create table local_group (
|
||||||
|
group_id integer primary key comment 'group represented' references user_group (id),
|
||||||
|
nickname varchar(64) unique key comment 'group represented',
|
||||||
|
|
||||||
|
created datetime not null comment 'date this record was created',
|
||||||
|
modified timestamp comment 'date this record was modified'
|
||||||
|
|
||||||
|
) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin;
|
||||||
|
|
||||||
|
insert into local_group (group_id, nickname, created)
|
||||||
|
select id, nickname, created from user_group;
|
||||||
|
|
@ -1,17 +0,0 @@
|
|||||||
alter table user_group
|
|
||||||
add uri varchar(255) unique key comment 'universal identifier',
|
|
||||||
add mainpage varchar(255) comment 'page for group info to link to',
|
|
||||||
drop index nickname;
|
|
||||||
|
|
||||||
create table local_group (
|
|
||||||
|
|
||||||
group_id integer primary key comment 'group represented' references user_group (id),
|
|
||||||
nickname varchar(64) unique key comment 'group represented',
|
|
||||||
|
|
||||||
created datetime not null comment 'date this record was created',
|
|
||||||
modified timestamp comment 'date this record was modified'
|
|
||||||
|
|
||||||
) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin;
|
|
||||||
|
|
||||||
insert into local_group (group_id, nickname, created, modified)
|
|
||||||
select id, nickname, created, modified from user_group;
|
|
Loading…
Reference in New Issue
Block a user