mirror of
https://github.com/Icinga/icingaweb2.git
synced 2026-06-09 00:22:45 -04:00
Add SPDX license headers and mark source files as GPL-3.0-or-later to preserve the option to relicense under later GPL versions.
14 lines
589 B
SQL
14 lines
589 B
SQL
-- SPDX-FileCopyrightText: 2023 Icinga GmbH <https://icinga.com>
|
|
-- SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
ALTER TABLE icingaweb_schema
|
|
MODIFY COLUMN timestamp bigint unsigned NOT NULL,
|
|
MODIFY COLUMN version varchar(64) NOT NULL,
|
|
ADD COLUMN success enum('n', 'y') DEFAULT NULL,
|
|
ADD COLUMN reason text DEFAULT NULL,
|
|
ADD CONSTRAINT idx_icingaweb_schema_version UNIQUE (version);
|
|
|
|
UPDATE icingaweb_schema SET timestamp = timestamp * 1000, success = 'y';
|
|
|
|
INSERT INTO icingaweb_schema (version, timestamp, success, reason)
|
|
VALUES('2.12.0', UNIX_TIMESTAMP() * 1000, 'y', NULL);
|