Bump expected mysql & psql schema version to 7 & 5

This commit is contained in:
Yonas Habteab 2024-12-19 12:12:56 +01:00
parent a34313e563
commit ace85d10b4
3 changed files with 4 additions and 4 deletions

View file

@ -15,8 +15,8 @@ import (
)
const (
expectedMysqlSchemaVersion = 6
expectedPostgresSchemaVersion = 4
expectedMysqlSchemaVersion = 7
expectedPostgresSchemaVersion = 5
)
// ErrSchemaNotExists implies that no Icinga DB schema has been imported.

View file

@ -1408,4 +1408,4 @@ CREATE TABLE icingadb_schema (
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin ROW_FORMAT=DYNAMIC;
INSERT INTO icingadb_schema (version, timestamp)
VALUES (6, UNIX_TIMESTAMP() * 1000);
VALUES (7, UNIX_TIMESTAMP() * 1000);

View file

@ -2271,4 +2271,4 @@ CREATE TABLE icingadb_schema (
ALTER SEQUENCE icingadb_schema_id_seq OWNED BY icingadb_schema.id;
INSERT INTO icingadb_schema (version, timestamp)
VALUES (4, extract(epoch from now()) * 1000);
VALUES (5, extract(epoch from now()) * 1000);