Skip to content

Commit

Permalink
Fixes #149 - corrected order of users migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalidze committed Apr 20, 2015
1 parent ced4685 commit e784101
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/org/traccar/web/server/model/DBMigrations.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ public void migrate(EntityManager em) throws Exception {
new SetDefaultMapViewSettings(),
new SetManagerFlag(),
new SetNotificationsFlag(),
new AddDefaultNotifications(),
new SetReadOnlyFlag(),
new AddDefaultNotifications(),
new SetDefaultDeviceTimeout(),
new SetDefaultIdleSpeedThreshold(),
new SetDefaultDisallowDeviceManagementByUsers(),
Expand All @@ -43,7 +43,7 @@ public void migrate(EntityManager em) throws Exception {
new SetDefaultHashImplementation(),
new SetDefaultUserSettings(),
new SetArchiveDefaultColumns(),
new SetAllDevicesFlag()
new SetGeoFenceAllDevicesFlag()
}) {
em.getTransaction().begin();
try {
Expand Down Expand Up @@ -263,7 +263,7 @@ public void migrate(EntityManager em) throws Exception {
}
}

static class SetAllDevicesFlag implements Migration {
static class SetGeoFenceAllDevicesFlag implements Migration {
@Override
public void migrate(EntityManager em) throws Exception {
em.createQuery("UPDATE " + GeoFence.class.getName() + " G SET G.allDevices = :b WHERE G.allDevices IS NULL")
Expand Down

0 comments on commit e784101

Please sign in to comment.