mirror of
https://github.com/traccar/traccar.git
synced 2026-02-05 13:13:55 -05:00
Workarounds for quoted table and columns
This commit is contained in:
@@ -5,6 +5,22 @@
|
||||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
|
||||
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.4.xsd">
|
||||
|
||||
<changeSet author="author" id="changelog-3.2-normalize">
|
||||
|
||||
<preConditions onFail="MARK_RAN">
|
||||
<not>
|
||||
<columnExists tableName="user" columnName="id"/>
|
||||
</not>
|
||||
</preConditions>
|
||||
|
||||
<renameTable oldTableName="quotedUser" newTableName="user" />
|
||||
|
||||
<modifySql>
|
||||
<replace replace="quotedUser" with=""user"" />
|
||||
</modifySql>
|
||||
|
||||
</changeSet>
|
||||
|
||||
<changeSet author="author" id="changelog-3.2">
|
||||
|
||||
<preConditions onFail="MARK_RAN">
|
||||
|
||||
@@ -5,6 +5,24 @@
|
||||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
|
||||
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.4.xsd">
|
||||
|
||||
<changeSet author="author" id="changelog-3.3-normalize">
|
||||
|
||||
<preConditions onFail="MARK_RAN">
|
||||
<not>
|
||||
<columnExists tableName="user_device" columnName="read"/>
|
||||
</not>
|
||||
</preConditions>
|
||||
|
||||
<renameColumn tableName="user_device" oldColumnName="quotedRead" newColumnName="read" />
|
||||
<renameColumn tableName="user_device" oldColumnName="quotedWrite" newColumnName="write" />
|
||||
|
||||
<modifySql>
|
||||
<replace replace="quotedRead" with=""read"" />
|
||||
<replace replace="quotedWrite" with=""write"" />
|
||||
</modifySql>
|
||||
|
||||
</changeSet>
|
||||
|
||||
<changeSet author="author" id="changelog-3.3">
|
||||
|
||||
<dropDefaultValue tableName="user" columnName="salt" />
|
||||
|
||||
Reference in New Issue
Block a user