-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3974 from Coduz/fix-clientIdCaseSentisive
fix(device): fixed Device.clientId and DeviceConnection.clientId being not case sensitive
- Loading branch information
Showing
3 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
...e/device/registry/internal/src/main/resources/liquibase/2.0.0/device-client_id_binary.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
30 changes: 30 additions & 0 deletions
30
...gistry/internal/src/main/resources/liquibase/2.0.0/device_connection-client_id_binary.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |