mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-12 23:37:02 +02:00
extended the user table to store util/db-mysql.sql
This commit is contained in:
@ -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` (
|
||||
|
2
util/db-upgrade-0.1.21-vs-0.1.22.sql
Normal file
2
util/db-upgrade-0.1.21-vs-0.1.22.sql
Normal file
@ -0,0 +1,2 @@
|
||||
alter table `user` add column `samaccountname` char(64) default null;
|
||||
|
Reference in New Issue
Block a user