Improved work with number series. Added season to voucher record.

This commit is contained in:
2017-05-29 14:08:06 +02:00
parent 87290d4be4
commit b941acf9a0
8 changed files with 38 additions and 6 deletions
+5 -1
View File
@@ -8,7 +8,7 @@
"default" : "",
"CZ" : ""
},
"schemaVersion" : 5,
"schemaVersion" : 6,
"sql" : [
"CREATE TABLE \"VoucherItem\" (
\"id\" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
@@ -72,6 +72,10 @@ CREATE TABLE \"Voucher\" (
\"favButtonName\" TEXT NULL);
",
"ALTER TABLE \"FavoritItem\" ADD \"shortName\" TEXT NULL;
",
"ALTER TABLE \"Voucher\" ADD \"season\" INTEGER NULL;
UPDATE \"Voucher\" SET season = (SELECT id FROM \"Season\" WHERE active = 1);
"
],
"dependencies" : [ "ADDRESSBOOK" ],