-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #84 from diggyk/master
Updating the fate's explorer to show fate desc
- Loading branch information
Showing
19 changed files
with
317 additions
and
374 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
SET foreign_key_checks=0; | ||
DROP TABLE IF EXISTS event_types; | ||
|
||
CREATE TABLE event_types ( | ||
id int(11) NOT NULL AUTO_INCREMENT, | ||
category varchar(64) COLLATE utf8_unicode_ci NOT NULL, | ||
state varchar(32) COLLATE utf8_unicode_ci NOT NULL, | ||
description varchar(1024) COLLATE utf8_unicode_ci DEFAULT NULL, | ||
PRIMARY KEY (id), | ||
UNIQUE KEY _category_state_uc (category,state), | ||
KEY event_type_idx (id,category,state) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; | ||
|
||
LOCK TABLES event_types WRITE; | ||
/*!40000 ALTER TABLE event_types DISABLE KEYS */; | ||
|
||
INSERT INTO event_types (id, category, state, description) | ||
VALUES | ||
(1,'system-reboot','required','System requires a reboot'), | ||
(2,'system-reboot','completed','System rebooted'), | ||
(3,'system-maintenance','required','System requires maintenance'), | ||
(4,'system-maintenance','ready','System ready for maintenance'), | ||
(5,'system-maintenance','completed','System maintenance completed'), | ||
(6,'system-maintenance','acknowledge','Acknowledge system maintenance'), | ||
(7,'system-maintenance','cancel','Cancel system maintenance'); | ||
|
||
/*!40000 ALTER TABLE event_types ENABLE KEYS */; | ||
UNLOCK TABLES; | ||
|
||
|
||
# Dump of table fates | ||
# ------------------------------------------------------------ | ||
|
||
DROP TABLE IF EXISTS fates; | ||
|
||
CREATE TABLE fates ( | ||
id int(11) NOT NULL AUTO_INCREMENT, | ||
creation_type_id int(11) NOT NULL, | ||
follows_id int(11) DEFAULT NULL, | ||
for_creator int(1) NOT NULL DEFAULT '0', | ||
for_owner int(1) NOT NULL DEFAULT '1', | ||
description varchar(2048) COLLATE utf8_unicode_ci DEFAULT NULL, | ||
PRIMARY KEY (id), | ||
UNIQUE KEY _creation_completion_uc (creation_type_id,follows_id), | ||
KEY ix_fates_creation_type_id (creation_type_id), | ||
KEY fate_idx (id,creation_type_id,follows_id), | ||
KEY ix_fates_follows_id (follows_id), | ||
CONSTRAINT fates_ibfk_1 FOREIGN KEY (creation_type_id) REFERENCES event_types (id), | ||
CONSTRAINT fates_ibfk_3 FOREIGN KEY (follows_id) REFERENCES fates (id) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; | ||
|
||
LOCK TABLES fates WRITE; | ||
/*!40000 ALTER TABLE fates DISABLE KEYS */; | ||
|
||
INSERT INTO fates (id, creation_type_id, follows_id, for_creator, for_owner, description) | ||
VALUES | ||
(1,1,NULL,0,1,'Reboot or release the system'), | ||
(2,2,1,0,1,'System rebooted'), | ||
(3,3,NULL,0,1,'Release or acknowledge downtime'), | ||
(4,4,3,0,1,'Perform maintenance'), | ||
(5,5,4,1,0,'Maintenance completed'), | ||
(6,6,3,0,1,'Acknowledge maintenance'), | ||
(7,5,6,1,0,'Maintenance completed'), | ||
(8,7,3,0,1,'Maintenance cancelled'), | ||
(9,7,4,0,1,'Maintenance cancelled'), | ||
(10,7,6,0,1,'Maintenance cancelled'); | ||
|
||
/*!40000 ALTER TABLE fates ENABLE KEYS */; | ||
UNLOCK TABLES; | ||
SET foreign_key_checks=1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "0.5.0" | ||
__version__ = "0.5.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.