diff --git a/application/src/main/resources/thingsboard.yml b/application/src/main/resources/thingsboard.yml index da42728e42..0e291db2cc 100644 --- a/application/src/main/resources/thingsboard.yml +++ b/application/src/main/resources/thingsboard.yml @@ -309,7 +309,7 @@ spring.resources.chain: spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation: "true" -# HSQLDB DAO Configuration +# SQL DAO Configuration spring: data: jpa: @@ -318,28 +318,12 @@ spring: jpa: hibernate: ddl-auto: "none" - database-platform: "${SPRING_JPA_DATABASE_PLATFORM:org.hibernate.dialect.HSQLDialect}" + database-platform: "${SPRING_JPA_DATABASE_PLATFORM:org.hibernate.dialect.PostgreSQLDialect}" datasource: - driverClassName: "${SPRING_DRIVER_CLASS_NAME:org.hsqldb.jdbc.JDBCDriver}" - url: "${SPRING_DATASOURCE_URL:jdbc:hsqldb:file:${SQL_DATA_FOLDER:/tmp}/thingsboardDb;sql.enforce_size=false;hsqldb.log_size=5}" - username: "${SPRING_DATASOURCE_USERNAME:sa}" - password: "${SPRING_DATASOURCE_PASSWORD:}" - -# PostgreSQL DAO Configuration -#spring: -# data: -# sql: -# repositories: -# enabled: "true" -# sql: -# hibernate: -# ddl-auto: "none" -# database-platform: "${SPRING_JPA_DATABASE_PLATFORM:org.hibernate.dialect.PostgreSQLDialect}" -# datasource: -# driverClassName: "${SPRING_DRIVER_CLASS_NAME:org.postgresql.Driver}" -# url: "${SPRING_DATASOURCE_URL:jdbc:postgresql://localhost:5432/thingsboard}" -# username: "${SPRING_DATASOURCE_USERNAME:postgres}" -# password: "${SPRING_DATASOURCE_PASSWORD:postgres}" + driverClassName: "${SPRING_DRIVER_CLASS_NAME:org.postgresql.Driver}" + url: "${SPRING_DATASOURCE_URL:jdbc:postgresql://localhost:5432/thingsboard}" + username: "${SPRING_DATASOURCE_USERNAME:postgres}" + password: "${SPRING_DATASOURCE_PASSWORD:postgres}" # Audit log parameters audit-log: diff --git a/application/src/main/scripts/windows/install.bat b/application/src/main/scripts/windows/install.bat index 42ff2ec15a..ffd085aa20 100644 --- a/application/src/main/scripts/windows/install.bat +++ b/application/src/main/scripts/windows/install.bat @@ -43,7 +43,7 @@ if errorlevel 1 ( ) POPD -%BASE%thingsboard.exe install +"%BASE%"thingsboard.exe install @ECHO ThingsBoard installed successfully! diff --git a/application/src/main/scripts/windows/uninstall.bat b/application/src/main/scripts/windows/uninstall.bat index 921e4c8395..634b88ddff 100644 --- a/application/src/main/scripts/windows/uninstall.bat +++ b/application/src/main/scripts/windows/uninstall.bat @@ -4,6 +4,6 @@ net stop ${pkg.name} @ECHO Uninstalling ${pkg.name} ... -%~dp0${pkg.name}.exe uninstall +"%~dp0"${pkg.name}.exe uninstall @ECHO DONE. \ No newline at end of file