Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixing database update Typo issue #9

  • Loading branch information...
commit e8f5642772c24b59c676ae2512a89a5c6782ca13 1 parent f810605
Jan Hahnisch authored
View
12 src/mpv5/db/common/DatabaseUpdater.java
@@ -214,6 +214,12 @@ public DatabaseUpdater() {
"ALTER TABLE schedule DROP COLUMN eventtype",
"RENAME COLUMN schedule.eventtype2 TO eventtype"
});
+ UPDATES_DERBY.put(1.1975, new String[]{
+ "ALTER TABLE schedule ADD COLUMN eventtype2 BIGINT",
+ "UPDATE schedule SET eventtype2=eventtype",
+ "ALTER TABLE schedule DROP COLUMN eventtype",
+ "RENAME COLUMN schedule.eventtype2 TO eventtype"
+ });
////////////////////////////////////////////////////////////////////////////////////////////
// mysql updates
UPDATES_MYSQL.put(1.11, new String[]{
@@ -474,6 +480,12 @@ public DatabaseUpdater() {
"ALTER TABLE schedule DROP COLUMN eventtype",
"RENAME COLUMN schedule.eventtype2 TO eventtype"
});
+ UPDATES_MYSQL.put(1.1975, new String[]{
+ "ALTER TABLE schedule ADD COLUMN eventtype2 BIGINT",
+ "UPDATE schedule SET eventtype2=eventtype",
+ "ALTER TABLE schedule DROP COLUMN eventtype",
+ "RENAME COLUMN schedule.eventtype2 TO eventtype"
+ });
}
/**
View
2  src/mpv5/globals/Constants.java
@@ -39,7 +39,7 @@
/**
* The minimal Database Version which is compatible with this release
*/
- public static final Double DATABASE_VERSION = 1.1974;
+ public static final Double DATABASE_VERSION = 1.1975;
/**
* The max Database Version which is compatible with this release
*/
Please sign in to comment.
Something went wrong with that request. Please try again.