]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - db/08to09.sql
Added 'login' command that gives you a link that can be used to login to the website
[quix0rs-gnu-social.git] / db / 08to09.sql
1 alter table notice
2      modify column content text comment 'update content';
3
4 alter table message
5      modify column content text comment 'message content';
6
7 alter table profile
8      modify column bio text comment 'descriptive biography';
9
10 alter table user_group
11      modify column description text comment 'group description';
12
13 alter table file_oembed
14      add column mimetype varchar(50) comment 'mime type of resource';
15
16 create table config (
17
18     section varchar(32) comment 'configuration section',
19     setting varchar(32) comment 'configuration setting',
20     value varchar(255) comment 'configuration value',
21
22     constraint primary key (section, setting)
23
24 ) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin;
25
26 create table user_role (
27
28     user_id integer not null comment 'user having the role' references user (id),
29     role    varchar(32) not null comment 'string representing the role',
30     created datetime not null comment 'date the role was granted',
31
32     constraint primary key (user_id, role)
33
34 ) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin;
35
36 create table login_token (
37     user_id integer not null comment 'user owning this token' references user (id),
38     token char(32) not null comment 'token useable for logging in',
39     created datetime not null comment 'date this record was created',
40     modified timestamp comment 'date this record was modified',
41
42     constraint primary key (user_id)
43 ) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin;
44