File tree Expand file tree Collapse file tree 4 files changed +17
-3
lines changed
java/org/mycontroller/standalone/db Expand file tree Collapse file tree 4 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 2121
2222 <groupId >org.mycontroller</groupId >
2323 <artifactId >mycontroller-standalone</artifactId >
24- <version >0.0.1 </version >
24+ <version >0.0.2-alpha1 </version >
2525 <packaging >jar</packaging >
2626
2727 <name >MyController.org</name >
Original file line number Diff line number Diff line change @@ -200,6 +200,20 @@ public static void updateSchema() {
200200
201201 DaoUtils .getSettingsDao ().create (new Settings (Settings .MC_DB_VERSION , "1" , "Database Schema Revision" ));
202202 _logger .info ("MC DB version[{}] upgraded to version[{}]" , dbVersion , 1 );
203+ dbVersion = 1 ;
204+ }
205+ if (dbVersion < 2 ) {
206+
207+ settings = DaoUtils .getSettingsDao ().get (Settings .MC_VERSION );
208+ settings .setValue ("0.0.2-alpha1" );
209+ DaoUtils .getSettingsDao ().update (settings );
210+
211+ settings = DaoUtils .getSettingsDao ().get (Settings .MC_DB_VERSION );
212+ settings .setValue ("2" );
213+ DaoUtils .getSettingsDao ().update (settings );
214+
215+ _logger .info ("MC DB version[{}] upgraded to version[{}]" , dbVersion , 2 );
216+ dbVersion = 2 ;
203217 }
204218 }
205219
Original file line number Diff line number Diff line change 1818SET HEAP_MIN = -Xms8m
1919SET HEAP_MAX = -Xmx40m
2020
21- SET MC_VERSION = 0.0.1
21+ SET MC_VERSION = 0.0.2-alpha1
2222
2323SET CONF_PROPERTIES_FILE = ../conf/mycontroller.properties
2424SET CONF_LOG_FILE = ../conf/logback.xml
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ HEAP_MIN=-Xms8m
2121HEAP_MAX=-Xmx40m
2222
2323JAVA_VERSION=" 1.7"
24- MC_VERSION=" 0.0.1 "
24+ MC_VERSION=" 0.0.2-alpha1 "
2525
2626# configuration file location
2727CONF_PROPERTIES_FILE=../conf/mycontroller.properties
You can’t perform that action at this time.
0 commit comments