mirror of
https://github.com/Icinga/icingadb.git
synced 2026-06-09 00:42:37 -04:00
schema: add last_state_change to redundancy_group_state
This commit is contained in:
parent
1303d13d1f
commit
d2c3fab968
2 changed files with 3 additions and 0 deletions
|
|
@ -25,6 +25,7 @@ CREATE TABLE `redundancy_group_state` (
|
|||
`id` binary(20) NOT NULL,
|
||||
`redundancy_group_id` binary(20) NOT NULL,
|
||||
`failed` enum('n', 'y') NOT NULL,
|
||||
`last_state_change` bigint unsigned NOT NULL,
|
||||
UNIQUE INDEX `redundancy_group_state_redundancy_group_id_uindex` (redundancy_group_id),
|
||||
KEY `redundancy_group_state_redundancy_group_id_fk` (`redundancy_group_id`),
|
||||
CONSTRAINT `redundancy_group_state_redundancy_group_id_fk` FOREIGN KEY (`redundancy_group_id`) REFERENCES `redundancy_group` (`id`)
|
||||
|
|
|
|||
2
schema/mysql/upgrades/dependencies2.sql
Normal file
2
schema/mysql/upgrades/dependencies2.sql
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
alter table redundancy_group_state
|
||||
add last_state_change bigint unsigned not null;
|
||||
Loading…
Reference in a new issue