Skip to content

Commit adc076a

Browse files
committed
0.0.2-alpha1 release
1 parent e8413cb commit adc076a

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
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>

src/main/java/org/mycontroller/standalone/db/DataBaseUtils.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff 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

src/main/package/bin/start.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
SET HEAP_MIN=-Xms8m
1919
SET HEAP_MAX=-Xmx40m
2020

21-
SET MC_VERSION=0.0.1
21+
SET MC_VERSION=0.0.2-alpha1
2222

2323
SET CONF_PROPERTIES_FILE=../conf/mycontroller.properties
2424
SET CONF_LOG_FILE=../conf/logback.xml

src/main/package/bin/start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ HEAP_MIN=-Xms8m
2121
HEAP_MAX=-Xmx40m
2222

2323
JAVA_VERSION="1.7"
24-
MC_VERSION="0.0.1"
24+
MC_VERSION="0.0.2-alpha1"
2525

2626
#configuration file location
2727
CONF_PROPERTIES_FILE=../conf/mycontroller.properties

0 commit comments

Comments
 (0)