summaryrefslogtreecommitdiff
path: root/sql-files
diff options
context:
space:
mode:
authorAsheraf <acheraf1998@gmail.com>2017-11-05 00:51:34 +0000
committerAsheraf <acheraf1998@gmail.com>2017-11-18 22:45:11 +0000
commit1a4327551900db5e2ecbb754bef7c05f4edfc6dd (patch)
treef60c6951a12ba3b634f5c6b5c40f6c1b62ece349 /sql-files
parent41f3237e4537d7105fb47d56b455d31cf33c155c (diff)
downloadhercules-1a4327551900db5e2ecbb754bef7c05f4edfc6dd.tar.gz
hercules-1a4327551900db5e2ecbb754bef7c05f4edfc6dd.tar.bz2
hercules-1a4327551900db5e2ecbb754bef7c05f4edfc6dd.tar.xz
hercules-1a4327551900db5e2ecbb754bef7c05f4edfc6dd.zip
Implement Homunculus autofeeding
Diffstat (limited to 'sql-files')
-rw-r--r--sql-files/main.sql2
-rw-r--r--sql-files/upgrades/2017-11-04--10-39.sql6
-rw-r--r--sql-files/upgrades/index.txt1
3 files changed, 9 insertions, 0 deletions
diff --git a/sql-files/main.sql b/sql-files/main.sql
index 1e1fdbc38..feda8a4cd 100644
--- a/sql-files/main.sql
+++ b/sql-files/main.sql
@@ -534,6 +534,7 @@ CREATE TABLE IF NOT EXISTS `homunculus` (
`alive` TINYINT(2) NOT NULL DEFAULT '1',
`rename_flag` TINYINT(2) NOT NULL DEFAULT '0',
`vaporize` TINYINT(2) NOT NULL DEFAULT '0',
+ `autofeed` TINYINT(2) NOT NULL DEFAULT '0',
PRIMARY KEY (`homun_id`)
) ENGINE=MyISAM;
@@ -883,6 +884,7 @@ INSERT IGNORE INTO `sql_updates` (`timestamp`) VALUES (1477434595); -- 2016-10-2
INSERT IGNORE INTO `sql_updates` (`timestamp`) VALUES (1488454834); -- 2017-03-02--11-40.sql
INSERT IGNORE INTO `sql_updates` (`timestamp`) VALUES (1488744559); -- 2017-03-05--08-09.sql
INSERT IGNORE INTO `sql_updates` (`timestamp`) VALUES (1489588190); -- 2017-03-15--14-29.sql
+INSERT IGNORE INTO `sql_updates` (`timestamp`) VALUES (1509835214); -- 2017-11-04--10-39.sql
--
-- Table structure for table `storage`
--
diff --git a/sql-files/upgrades/2017-11-04--10-39.sql b/sql-files/upgrades/2017-11-04--10-39.sql
new file mode 100644
index 000000000..f95dbef0c
--- /dev/null
+++ b/sql-files/upgrades/2017-11-04--10-39.sql
@@ -0,0 +1,6 @@
+#1509835214
+
+ALTER TABLE `homunculus`
+ ADD COLUMN `autofeed` TINYINT(2) NOT NULL DEFAULT '0' AFTER `vaporize`;
+
+INSERT INTO `sql_updates` (`timestamp`, `ignored`) VALUES (1509835214 , 'No');
diff --git a/sql-files/upgrades/index.txt b/sql-files/upgrades/index.txt
index 553e071ee..11cb36a79 100644
--- a/sql-files/upgrades/index.txt
+++ b/sql-files/upgrades/index.txt
@@ -40,3 +40,4 @@
2017-03-02--11-40.sql
2017-03-05--08-09.sql
2017-03-15--14-29.sql
+2017-11-04--10-39.sql