piler/util/db-upgrade-0.1.23-vs-0.1.24.sql

40 lines
1.3 KiB
MySQL
Raw Normal View History

2013-07-12 15:02:50 +02:00
alter table `domain` add column `ldap_id` int default 0;
2013-07-24 22:29:28 +02:00
alter table `audit` add column `domain` varchar(128) not null;
2013-07-12 15:02:50 +02:00
create index `audit_idx5` on `audit`(`domain`);
2013-07-31 09:10:26 +02:00
alter table archiving_rule add column domain varchar(255) default null;
alter table retention_rule add column domain varchar(255) default null;
2013-07-12 15:02:50 +02:00
create table if not exists `ldap` (
`id` int not null auto_increment primary key,
`description` varchar(255) not null,
`ldap_type` varchar(255) not null,
`ldap_host` varchar(255) not null,
`ldap_base_dn` varchar(255) not null,
`ldap_bind_dn` varchar(255) not null,
2013-07-23 22:44:34 +02:00
`ldap_bind_pw` varchar(255) not null,
`ldap_auditor_member_dn` varchar(255) default null
2013-07-12 15:02:50 +02:00
) Engine=InnoDB;
2013-07-16 07:36:48 +02:00
create table if not exists `customer_settings` (
2013-07-23 22:44:34 +02:00
`id` int not null auto_increment primary key,
2013-07-16 07:36:48 +02:00
`domain` varchar(255) not null unique,
`branding_text` varchar(255) default null,
`branding_url` varchar(255) default null,
2013-07-18 17:13:49 +02:00
`branding_logo` varchar(255) default null,
2013-07-16 07:36:48 +02:00
`support_link` varchar(255) default null,
`colour` varchar(255) default null
2013-07-24 22:14:05 +02:00
) Engine=InnoDB;
2013-07-12 15:02:50 +02:00
2013-07-24 22:14:05 +02:00
create table if not exists `online` (
2013-07-25 14:38:44 +02:00
`username` varchar(255) not null,
2013-07-24 22:14:05 +02:00
`ts` int default 0,
`last_activity` int default 0,
2013-07-25 14:38:44 +02:00
`ipaddr` varchar(255) default null,
unique(`username`,`ipaddr`)
2013-07-24 22:14:05 +02:00
) Engine=InnoDB;
2013-07-12 15:02:50 +02:00