Skip to content

Commit

Permalink
schema: add last_state_change to redundancy_group_state
Browse files Browse the repository at this point in the history
  • Loading branch information
nilmerg committed Sep 11, 2024
1 parent e81e860 commit 8206e62
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions schema/mysql/upgrades/dependencies.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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`)
Expand Down
2 changes: 2 additions & 0 deletions schema/mysql/upgrades/dependencies2.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
alter table redundancy_group_state
add last_state_change bigint unsigned not null;

0 comments on commit 8206e62

Please sign in to comment.