aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/model/Schema.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-08-02 16:53:24 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-08-02 16:53:24 +1200
commit2617753615e47acb6600a7d551c4f6508f5af91f (patch)
tree33497cb97473da56ce339b5b0acc29628a913af5 /src/org/traccar/model/Schema.java
parent6f47747e6a438037392794f72ac91dbce6cc6683 (diff)
downloadtrackermap-server-2617753615e47acb6600a7d551c4f6508f5af91f.tar.gz
trackermap-server-2617753615e47acb6600a7d551c4f6508f5af91f.tar.bz2
trackermap-server-2617753615e47acb6600a7d551c4f6508f5af91f.zip
Add database schema version
Diffstat (limited to 'src/org/traccar/model/Schema.java')
-rw-r--r--src/org/traccar/model/Schema.java29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/org/traccar/model/Schema.java b/src/org/traccar/model/Schema.java
new file mode 100644
index 000000000..1878f0edb
--- /dev/null
+++ b/src/org/traccar/model/Schema.java
@@ -0,0 +1,29 @@
+/*
+ * Copyright 2015 Anton Tananaev (anton.tananaev@gmail.com)
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.traccar.model;
+
+public class Schema implements Factory {
+
+ @Override
+ public Schema create() {
+ return new Schema();
+ }
+
+ private int version;
+ public int getVersion() { return version; }
+ public void setVersion(int version) { this.version = version; }
+
+}