[Web] Fix init db
parent
9e53ed4daf
commit
60910c496c
|
@ -3,7 +3,7 @@ function init_db_schema() {
|
||||||
try {
|
try {
|
||||||
global $pdo;
|
global $pdo;
|
||||||
|
|
||||||
$db_version = "19022018_0839";
|
$db_version = "06052018_1239";
|
||||||
|
|
||||||
$stmt = $pdo->query("SHOW TABLES LIKE 'versions'");
|
$stmt = $pdo->query("SHOW TABLES LIKE 'versions'");
|
||||||
$num_results = count($stmt->fetchAll(PDO::FETCH_ASSOC));
|
$num_results = count($stmt->fetchAll(PDO::FETCH_ASSOC));
|
||||||
|
@ -238,7 +238,6 @@ function init_db_schema() {
|
||||||
),
|
),
|
||||||
"user_acl" => array(
|
"user_acl" => array(
|
||||||
"cols" => array(
|
"cols" => array(
|
||||||
"id" => "INT NOT NULL AUTO_INCREMENT",
|
|
||||||
"username" => "VARCHAR(255) NOT NULL",
|
"username" => "VARCHAR(255) NOT NULL",
|
||||||
"spam_alias" => "TINYINT(1) NOT NULL DEFAULT '1'",
|
"spam_alias" => "TINYINT(1) NOT NULL DEFAULT '1'",
|
||||||
"tls_policy" => "TINYINT(1) NOT NULL DEFAULT '1'",
|
"tls_policy" => "TINYINT(1) NOT NULL DEFAULT '1'",
|
||||||
|
@ -331,16 +330,12 @@ function init_db_schema() {
|
||||||
),
|
),
|
||||||
"domain_admins" => array(
|
"domain_admins" => array(
|
||||||
"cols" => array(
|
"cols" => array(
|
||||||
"id" => "INT NOT NULL AUTO_INCREMENT",
|
|
||||||
"username" => "VARCHAR(255) NOT NULL",
|
"username" => "VARCHAR(255) NOT NULL",
|
||||||
"domain" => "VARCHAR(255) NOT NULL",
|
"domain" => "VARCHAR(255) NOT NULL",
|
||||||
"created" => "DATETIME(0) NOT NULL DEFAULT NOW(0)",
|
"created" => "DATETIME(0) NOT NULL DEFAULT NOW(0)",
|
||||||
"active" => "TINYINT(1) NOT NULL DEFAULT '1'"
|
"active" => "TINYINT(1) NOT NULL DEFAULT '1'"
|
||||||
),
|
),
|
||||||
"keys" => array(
|
"keys" => array(
|
||||||
"primary" => array(
|
|
||||||
"" => array("id")
|
|
||||||
),
|
|
||||||
"key" => array(
|
"key" => array(
|
||||||
"username" => array("username")
|
"username" => array("username")
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue