X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/8c6fa3fbaccc22127280bf77a48fab5a3ee0716e..46b0747592074017ff0ea4b33d4a7194235886e5:/stargazer/inst/var/01-alter-02.mysql.sql

diff --git a/stargazer/inst/var/01-alter-02.mysql.sql b/stargazer/inst/var/01-alter-02.mysql.sql
new file mode 100644
index 00000000..1f1b044b
--- /dev/null
+++ b/stargazer/inst/var/01-alter-02.mysql.sql
@@ -0,0 +1,12 @@
+/*
+ *  DB migration from v01 to v02 (mysql)
+ */
+
+ALTER TABLE tariffs ADD period VARCHAR(32) NOT NULL DEFAULT 'month';
+
+CREATE TABLE info
+(
+    version INTEGER NOT NULL
+);
+
+INSERT INTO info VALUES (1);
