Permalink
Browse files

fixing database update Typo issue #9

  • Loading branch information...
1 parent f810605 commit e8f5642772c24b59c676ae2512a89a5c6782ca13 Jan Hahnisch committed Aug 25, 2013
Showing with 13 additions and 1 deletion.
  1. +12 −0 src/mpv5/db/common/DatabaseUpdater.java
  2. +1 −1 src/mpv5/globals/Constants.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"
+ });
}
/**
@@ -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
*/

0 comments on commit e8f5642

Please sign in to comment.