mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2026-06-05 06:43:11 -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.
21 lines
755 B
SQL
21 lines
755 B
SQL
-- SPDX-FileCopyrightText: 2025 Icinga GmbH <https://icinga.com>
|
|
-- SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
ALTER TABLE director_job ADD COLUMN ts_last_attempt_tmp bigint DEFAULT NULL;
|
|
ALTER TABLE director_job ADD COLUMN ts_last_error_tmp bigint DEFAULT NULL;
|
|
|
|
|
|
UPDATE director_job
|
|
SET ts_last_attempt_tmp = UNIX_TIMESTAMP(ts_last_attempt) * 1000,
|
|
ts_last_error_tmp = UNIX_TIMESTAMP(ts_last_error) * 1000;
|
|
|
|
ALTER TABLE director_job
|
|
DROP COLUMN ts_last_attempt,
|
|
DROP COLUMN ts_last_error;
|
|
|
|
ALTER TABLE director_job RENAME COLUMN ts_last_attempt_tmp TO ts_last_attempt;
|
|
ALTER TABLE director_job RENAME COLUMN ts_last_error_tmp TO ts_last_error;
|
|
|
|
INSERT INTO director_schema_migration
|
|
(schema_version, migration_time)
|
|
VALUES (189, NOW());
|