Skip to content

Commit

Permalink
Merge pull request #3974 from Coduz/fix-clientIdCaseSentisive
Browse files Browse the repository at this point in the history
fix(device): fixed Device.clientId and DeviceConnection.clientId being not case sensitive
  • Loading branch information
Coduz authored Mar 1, 2024
2 parents 5ced6f2 + 9b6e58f commit bf1684c
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,7 @@
<include relativeToChangelogFile="true" file="./device-add-clob-ip-if-columns.xml"/>
<include relativeToChangelogFile="true" file="./device_connection-add_auth_type_column.xml"/>
<include relativeToChangelogFile="true" file="./device_tamper-status.xml"/>
<include relativeToChangelogFile="true" file="./device-client_id_binary.xml"/>
<include relativeToChangelogFile="true" file="./device_connection-client_id_binary.xml"/>

</databaseChangeLog>
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2021, 2022 Eurotech and/or its affiliates and others
This program and the accompanying materials are made
available under the terms of the Eclipse Public License 2.0
which is available at https://www.eclipse.org/legal/epl-2.0/
SPDX-License-Identifier: EPL-2.0
Contributors:
Eurotech - initial API and implementation
-->
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.0.xsd"
logicalFilePath="KapuaDB/changelog-device-2.0.0.xml">

<include relativeToChangelogFile="true" file="../common-properties.xml"/>

<changeSet id="device-client_id_binary" author="eurotech" dbms="mysql, mariadb">

<modifyDataType tableName="dvc_device" columnName="client_id" newDataType="varchar(255) BINARY"/>
<addNotNullConstraint tableName="dvc_device" columnDataType="varchar(255) BINARY" columnName="client_id"/>

</changeSet>

</databaseChangeLog>
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2021, 2022 Eurotech and/or its affiliates and others
This program and the accompanying materials are made
available under the terms of the Eclipse Public License 2.0
which is available at https://www.eclipse.org/legal/epl-2.0/
SPDX-License-Identifier: EPL-2.0
Contributors:
Eurotech - initial API and implementation
-->
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.0.xsd"
logicalFilePath="KapuaDB/changelog-device-2.0.0.xml">

<include relativeToChangelogFile="true" file="../common-properties.xml"/>

<changeSet id="device_connection-client-id-binary" author="eurotech" dbms="mysql, mariadb">

<modifyDataType tableName="dvc_device_connection" columnName="client_id" newDataType="varchar(255) BINARY"/>
<addNotNullConstraint tableName="dvc_device_connection" columnDataType="varchar(255) BINARY" columnName="client_id"/>

</changeSet>

</databaseChangeLog>

0 comments on commit bf1684c

Please sign in to comment.