-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add database updater with automatic backup Add getter for distribution configuration Enhance error handling
- Loading branch information
Showing
7 changed files
with
173 additions
and
23 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
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,32 @@ | ||
DROP TABLE IF EXISTS `pattern`; | ||
CREATE TABLE `pattern` ( | ||
`user` smallint(3) UNSIGNED NOT NULL, | ||
`id` mediumint(8) UNSIGNED NOT NULL, | ||
`label` varchar(200) NOT NULL, | ||
`category` smallint(3) UNSIGNED DEFAULT NULL, | ||
`subcategory` smallint(3) UNSIGNED DEFAULT NULL | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ||
|
||
DROP TABLE IF EXISTS `version`; | ||
CREATE TABLE `version` ( | ||
`version` varchar(12) NOT NULL | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ||
|
||
ALTER TABLE `pattern` | ||
ADD PRIMARY KEY (`user`,`id`), | ||
ADD KEY `id` (`id`), | ||
ADD KEY `fk_pattern_category_1` (`category`), | ||
ADD KEY `fk_pattern_subcategory_1` (`subcategory`); | ||
|
||
ALTER TABLE `version` | ||
ADD PRIMARY KEY (`version`); | ||
|
||
ALTER TABLE `pattern` | ||
MODIFY `id` mediumint(8) UNSIGNED NOT NULL AUTO_INCREMENT; | ||
|
||
ALTER TABLE `pattern` | ||
ADD CONSTRAINT `fk_pattern_category_1` FOREIGN KEY (`category`) REFERENCES `category` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | ||
ADD CONSTRAINT `fk_pattern_subcategory_1` FOREIGN KEY (`subcategory`) REFERENCES `category` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | ||
ADD CONSTRAINT `fk_pattern_user_1` FOREIGN KEY (`user`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; | ||
|
||
INSERT INTO `version` (`version`) VALUES ('0.2.0'); |
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
|
||
[system] | ||
; OwnMyMoney version | ||
version = 0.1.0 | ||
version = 0.2.0 | ||
; installation status | ||
setup = 0 | ||
|
||
|
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