Minor upgrade fixes
This commit is contained in:
parent
6d34e91c1b
commit
c460208b9c
@ -330,7 +330,7 @@ public class SqlDatabaseUpgradeService implements DatabaseEntitiesUpgradeService
|
|||||||
if (isOldSchema(conn, 3001000)) {
|
if (isOldSchema(conn, 3001000)) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
conn.createStatement().execute("ALTER TABLE device ADD COLUMN device_profile_id uuid, ADD COLUMN device_data varchar");
|
conn.createStatement().execute("ALTER TABLE device ADD COLUMN device_profile_id uuid, ADD COLUMN device_data jsonb");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -165,7 +165,7 @@ public class DeviceProfileServiceImpl extends AbstractEntityService implements D
|
|||||||
@Override
|
@Override
|
||||||
public DeviceProfile createDefaultDeviceProfile(TenantId tenantId) {
|
public DeviceProfile createDefaultDeviceProfile(TenantId tenantId) {
|
||||||
log.trace("Executing createDefaultDeviceProfile tenantId [{}]", tenantId);
|
log.trace("Executing createDefaultDeviceProfile tenantId [{}]", tenantId);
|
||||||
return doCreateDefaultDeviceProfile(tenantId, "Default", true);
|
return doCreateDefaultDeviceProfile(tenantId, "default", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user