mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 00:34:05 +02:00
schema/mysql: storing what we know makes life easier
This commit is contained in:
parent
2e7342b879
commit
92f54dbae2
@ -21,7 +21,7 @@ class SyncRun extends DbObject
|
|||||||
'objects_created' => null,
|
'objects_created' => null,
|
||||||
'objects_deleted' => null,
|
'objects_deleted' => null,
|
||||||
'objects_modified' => null,
|
'objects_modified' => null,
|
||||||
'first_related_activity' => null,
|
'last_former_activity' => null,
|
||||||
'last_related_activity' => null,
|
'last_related_activity' => null,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
9
schema/mysql-migrations/upgrade_69.sql
Normal file
9
schema/mysql-migrations/upgrade_69.sql
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
ALTER TABLE sync_run
|
||||||
|
DROP COLUMN first_related_activity,
|
||||||
|
ADD COLUMN last_former_activity VARBINARY(20) DEFAULT NULL AFTER objects_modified;
|
||||||
|
|
||||||
|
INSERT INTO director_schema_migration
|
||||||
|
SET migration_time = NOW(),
|
||||||
|
schema_version = 69;
|
||||||
|
|
||||||
|
|
@ -1064,7 +1064,7 @@ CREATE TABLE sync_run (
|
|||||||
objects_deleted INT(10) UNSIGNED DEFAULT 0,
|
objects_deleted INT(10) UNSIGNED DEFAULT 0,
|
||||||
objects_created INT(10) UNSIGNED DEFAULT 0,
|
objects_created INT(10) UNSIGNED DEFAULT 0,
|
||||||
objects_modified INT(10) UNSIGNED DEFAULT 0,
|
objects_modified INT(10) UNSIGNED DEFAULT 0,
|
||||||
first_related_activity VARBINARY(20) DEFAULT NULL,
|
last_former_activity VARBINARY(20) DEFAULT NULL,
|
||||||
last_related_activity VARBINARY(20) DEFAULT NULL,
|
last_related_activity VARBINARY(20) DEFAULT NULL,
|
||||||
PRIMARY KEY (id),
|
PRIMARY KEY (id),
|
||||||
CONSTRAINT sync_run_rule
|
CONSTRAINT sync_run_rule
|
||||||
@ -1076,5 +1076,5 @@ CREATE TABLE sync_run (
|
|||||||
|
|
||||||
INSERT INTO director_schema_migration
|
INSERT INTO director_schema_migration
|
||||||
SET migration_time = NOW(),
|
SET migration_time = NOW(),
|
||||||
schema_version = 68
|
schema_version = 69
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user