Unicode columns for SqlServer (#248)

* ENT-1291 Switch liquibase changelogs to use nvarchar instead of varchar

* Configure Hibernate to use nationalised strings

* Configure Hibernate to use nationalised strings

* Change schema so that UUIDs are varchars

* Update schema certificate signing request status is not unicode

* Upper case suffix for audit tables

* nvarchar -> varchar for status in the audit table

* Capitalisation

* Capitalisation

* Force hibernate to use unicode columns on SQL server

* Force hibernate to use unicode columns on SQL server

* Schema change to make PostgreSql happy

* SQL files to initialise the perfcluster db for SQL server and PostgreSql

* Code ordering and extra comment
This commit is contained in:
Christian Sailer
2017-12-21 17:34:21 +00:00
committed by GitHub
parent 2a0eefd351
commit a2344f15fb
27 changed files with 189 additions and 121 deletions

View File

@ -9,10 +9,10 @@
<column name="output_index" type="INT(10)">
<constraints nullable="false"/>
</column>
<column name="transaction_id" type="VARCHAR(64)">
<column name="transaction_id" type="NVARCHAR(64)">
<constraints nullable="false"/>
</column>
<column name="external_id" type="VARCHAR(255)"/>
<column name="external_id" type="NVARCHAR(255)"/>
<column name="uuid" type="VARCHAR(255)">
<constraints nullable="false"/>
</column>

View File

@ -7,13 +7,13 @@
<column name="output_index" type="INT(10)">
<constraints nullable="false"/>
</column>
<column name="transaction_id" type="VARCHAR(64)">
<column name="transaction_id" type="NVARCHAR(64)">
<constraints nullable="false"/>
</column>
<column name="external_id" type="VARCHAR(255)"/>
<column name="external_id" type="NVARCHAR(255)"/>
<column name="linear_boolean" type="BOOLEAN(1)"/>
<column name="linear_number" type="BIGINT(19)"/>
<column name="linear_string" type="VARCHAR(255)"/>
<column name="linear_string" type="NVARCHAR(255)"/>
<column name="linear_timestamp" type="TIMESTAMP"/>
<column name="uuid" type="VARCHAR(255)">
<constraints nullable="false"/>

View File

@ -8,16 +8,16 @@
<column name="output_index" type="INT(10)">
<constraints nullable="false"/>
</column>
<column name="transaction_id" type="VARCHAR(64)">
<column name="transaction_id" type="NVARCHAR(64)">
<constraints nullable="false"/>
</column>
<column name="external_id" type="VARCHAR(255)"/>
<column name="external_id" type="NVARCHAR(255)"/>
<column name="uuid" type="VARCHAR(255)">
<constraints nullable="false"/>
</column>
<column name="linear_boolean" type="BOOLEAN(1)"/>
<column name="linear_number" type="BIGINT(19)"/>
<column name="linear_string" type="VARCHAR(255)"/>
<column name="linear_string" type="NVARCHAR(255)"/>
<column name="linear_timestamp" type="TIMESTAMP"/>
</createTable>