extended the user table to store util/db-mysql.sql

This commit is contained in:
SJ
2012-10-16 23:45:54 +02:00
parent ac61b8cf0f
commit 02f1dac543
4 changed files with 22 additions and 10 deletions

View File

@ -195,13 +195,14 @@ create table if not exists `user` (
`uid` int unsigned not null primary key,
`username` char(64) not null unique,
`realname` char(64) default null,
`samaccountname` char(64) default null,
`password` char(128) default null,
`domain` char(64) default null,
`dn` char(255) default '*',
`isadmin` tinyint default 0
) Engine=InnoDB;
insert into `user` (`uid`, `username`, `realname`, `password`, `isadmin`, `domain`) values (0, 'admin', 'built-in piler admin', '$1$PItc7d$zsUgON3JRrbdGS11t9JQW1', 1, 'local');
insert into `user` (`uid`, `username`, `realname`, `samaccountname`, `password`, `isadmin`, `domain`) values (0, 'admin', 'built-in piler admin', '', '$1$PItc7d$zsUgON3JRrbdGS11t9JQW1', 1, 'local');
drop table if exists `email`;
create table if not exists `email` (

View File

@ -0,0 +1,2 @@
alter table `user` add column `samaccountname` char(64) default null;