summaryrefslogtreecommitdiff
path: root/sql-files/upgrades
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-02-15 18:12:47 -0200
committershennetsind <ind@henn.et>2013-02-15 18:15:57 -0200
commit651d6857d7784f4f2a7412e0eae1681fc7ccd147 (patch)
tree49d2d35a0bf843c5584587e4b76756323f4f5cbb /sql-files/upgrades
parent79f839d5a871a33512b7c6c700542d9e2192f696 (diff)
downloadhercules-651d6857d7784f4f2a7412e0eae1681fc7ccd147.tar.gz
hercules-651d6857d7784f4f2a7412e0eae1681fc7ccd147.tar.bz2
hercules-651d6857d7784f4f2a7412e0eae1681fc7ccd147.tar.xz
hercules-651d6857d7784f4f2a7412e0eae1681fc7ccd147.zip
MySQL Update Checker: Updated
Added a primary key to the `sql_updates` table (special thanks to Trojal) Modified the parser to ignore new/empty lines and added support for "//" comments in the index file. Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'sql-files/upgrades')
-rw-r--r--sql-files/upgrades/2013-02-15--18-06.sql3
-rw-r--r--sql-files/upgrades/index.txt3
2 files changed, 5 insertions, 1 deletions
diff --git a/sql-files/upgrades/2013-02-15--18-06.sql b/sql-files/upgrades/2013-02-15--18-06.sql
new file mode 100644
index 000000000..066693c70
--- /dev/null
+++ b/sql-files/upgrades/2013-02-15--18-06.sql
@@ -0,0 +1,3 @@
+#1360951560
+ALTER TABLE `sql_updates` ADD PRIMARY KEY(`timestamp`);
+INSERT INTO `sql_updates` (`timestamp`) VALUES (1360951560); \ No newline at end of file
diff --git a/sql-files/upgrades/index.txt b/sql-files/upgrades/index.txt
index e0c49cbce..3d4df8c23 100644
--- a/sql-files/upgrades/index.txt
+++ b/sql-files/upgrades/index.txt
@@ -1 +1,2 @@
-2013-02-14--16-15.sql \ No newline at end of file
+2013-02-14--16-15.sql
+2013-02-15--18-06.sql \ No newline at end of file