From ae3dc79ac3ae9d39681467f179f4e4bc8518baa9 Mon Sep 17 00:00:00 2001 From: Vitaly Litvak Date: Sat, 4 Jun 2016 16:31:29 +0300 Subject: [PATCH] Put migration of the 'commandsSendingForAdmins' before setting up of user settings --- src/main/java/org/traccar/web/server/model/DBMigrations.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/traccar/web/server/model/DBMigrations.java b/src/main/java/org/traccar/web/server/model/DBMigrations.java index 3e68fd59..356dc1e6 100644 --- a/src/main/java/org/traccar/web/server/model/DBMigrations.java +++ b/src/main/java/org/traccar/web/server/model/DBMigrations.java @@ -58,14 +58,14 @@ public void migrate(EntityManager em) throws Exception { new SetDefaultDeviceIconArrowRadius(), new SetDefaultHashImplementation(), new SetGlobalHashSalt(), + new SetDefaultAllowCommandsOnlyForAdmins(), new SetDefaultUserSettings(), new SetArchiveDefaultColumns(), new SetGeoFenceAllDevicesFlag(), new SetReportsFilterAndPreview(), new SetDefaultNotificationExpirationPeriod(), new SetDefaultExpiredFlagForEvents(), - new SetDefaultMatchServiceURL(), - new SetDefaultAllowCommandsOnlyForAdmins() + new SetDefaultMatchServiceURL() }) { em.getTransaction().begin(); try {