Make sql schema files consistent
This commit is contained in:
parent
26cae8b882
commit
864a78302f
|
@ -1,7 +1,7 @@
|
|||
ALTER TABLE icingaweb_schema
|
||||
MODIFY COLUMN timestamp bigint unsigned NOT NULL,
|
||||
MODIFY COLUMN version varchar(64) NOT NULL,
|
||||
ADD COLUMN IF NOT EXISTS success enum ('n', 'y') DEFAULT NULL,
|
||||
ADD COLUMN IF NOT EXISTS success enum('n', 'y') DEFAULT NULL,
|
||||
ADD COLUMN IF NOT EXISTS reason text DEFAULT NULL,
|
||||
DROP CONSTRAINT IF EXISTS idx_icingaweb_schema_version,
|
||||
ADD CONSTRAINT idx_icingaweb_schema_version UNIQUE (version);
|
||||
|
|
|
@ -56,8 +56,8 @@ CREATE TABLE `icingaweb_rememberme`(
|
|||
CREATE TABLE icingaweb_schema (
|
||||
id int unsigned NOT NULL AUTO_INCREMENT,
|
||||
version varchar(64) NOT NULL,
|
||||
timestamp bigint NOT NULL,
|
||||
success enum ('n', 'y') DEFAULT NULL,
|
||||
timestamp bigint unsigned NOT NULL,
|
||||
success enum('n', 'y') DEFAULT NULL,
|
||||
reason text DEFAULT NULL,
|
||||
|
||||
PRIMARY KEY (id),
|
||||
|
|
Loading…
Reference in New Issue