Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge Develop into main after 4.24 release #626

Merged
merged 9 commits into from
Oct 5, 2023
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<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-latest.xsd">

<changeSet id="1" author="oleh">
<createTable tableName="valueSequenceNextTable">
<column name="test_id" type="int"/>
<column name="test_column" type="varchar(50)"/>
</createTable>
</changeSet>

<changeSet id="2" author="oleh">
<createSequence incrementBy="2"
sequenceName="test_sequence"
startValue="30"/>
<rollback>
<dropSequence sequenceName="test_sequence"/>
</rollback>
</changeSet>


<changeSet id="3" author="oleh">
<update tableName="valueSequenceNextTable">
<column name="test_id" valueSequenceNext="test_sequence"/>
</update>
<rollback/>
</changeSet>

</databaseChangeLog>
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"snapshot": {
"objects": {
"liquibase.structure.core.Column": [
{
"column": {
"defaultValue": "1\\!\\{liquibase.statement.DatabaseFunction\\}",
"name": "booleanColumn",
"nullable": true,
"type": {
"typeName": "BOOLEAN"
}
}
}
]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"name": "boolean_col",
"nullable": false,
"type": {
"typeName": "BIT"
"typeName": "BOOLEAN"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"snapshot": {
"objects": {
"liquibase.structure.core.Column": [
{
"column": {
"defaultValue": "1\\!\\{java.lang.Integer\\}",
"name": "booleanColumn",
"nullable": true,
"type": {
"typeName": "BIT"
}
}
}
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"snapshot": {
"objects": {
"liquibase.structure.core.Column": [
{
"column": {
"defaultValue": "1\\!\\{java.lang.Integer\\}",
"name": "booleanColumn",
"nullable": true,
"type": {
"typeName": "BIT"
}
}
}
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"snapshot": {
"objects": {
"liquibase.structure.core.Table": [
{
"table": {
"name": "VALUESEQUENCENEXTTABLE"
}
}
]
}
}
}
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ALTER TABLE lbcat.authors ADD booleanColumn BIT(1) NULL
ALTER TABLE lbcat.authors ADD booleanColumn TINYINT(1) NULL
ALTER TABLE lbcat.authors ALTER booleanColumn SET DEFAULT 1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CREATE TABLE lbcat.test_table (id INT NULL, bit_col BIT(1) NULL, boolean_col BIT(1) NULL)
CREATE TABLE lbcat.test_table (id INT NULL, bit_col BIT(1) NULL, boolean_col TINYINT(1) NULL)
INSERT INTO lbcat.test_table (id) VALUES (1)
UPDATE lbcat.test_table SET bit_col = 1 WHERE bit_col IS NULL
ALTER TABLE lbcat.test_table MODIFY bit_col BIT(1) NOT NULL
UPDATE lbcat.test_table SET boolean_col = 1 WHERE boolean_col IS NULL
ALTER TABLE lbcat.test_table MODIFY boolean_col BIT(1) NOT NULL
ALTER TABLE lbcat.test_table MODIFY boolean_col TINYINT(1) NOT NULL
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ALTER TABLE lbcat.authors ADD booleanColumn BIT(1) NULL
ALTER TABLE lbcat.authors ADD booleanColumn TINYINT(1) NULL
ALTER TABLE lbcat.authors ALTER booleanColumn SET DEFAULT 1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CREATE TABLE lbcat.test_table (id INT NULL, bit_col BIT(1) NULL, boolean_col BIT(1) NULL)
CREATE TABLE lbcat.test_table (id INT NULL, bit_col BIT(1) NULL, boolean_col TINYINT(1) NULL)
INSERT INTO lbcat.test_table (id) VALUES (1)
UPDATE lbcat.test_table SET bit_col = 1 WHERE bit_col IS NULL
ALTER TABLE lbcat.test_table MODIFY bit_col BIT(1) NOT NULL
UPDATE lbcat.test_table SET boolean_col = 1 WHERE boolean_col IS NULL
ALTER TABLE lbcat.test_table MODIFY boolean_col BIT(1) NOT NULL
ALTER TABLE lbcat.test_table MODIFY boolean_col TINYINT(1) NOT NULL
Original file line number Diff line number Diff line change
@@ -1 +1 @@
CREATE TABLE lbcat.`datatypes.numeric_test_table` (bit BIT NULL, bit1 BIT(1) NULL, bit64 BIT(64) NULL, `tinyint` TINYINT NULL, `tinyint.unsigned` TINYINT unsigned NULL, bool BIT(1) NULL, boolean BIT(1) NULL, `smallint` SMALLINT NULL, `smallint.unsigned` SMALLINT unsigned NULL, `mediumint` MEDIUMINT NULL, `mediumint.unsigned` MEDIUMINT unsigned NULL, `int` INT NULL, `int.unsigned` INT unsigned NULL, `bigint` BIGINT NULL, `bigint.unsigned` BIGINT unsigned NULL, `decimal` DECIMAL NULL, `decimal.max` DECIMAL(65, 30) NULL, `float` FLOAT NULL, `float.10.10` FLOAT(10, 10) NULL, double_precision_column DOUBLE PRECISION(5, 2) NULL, precision_column DOUBLE(5, 2) NULL)
CREATE TABLE lbcat.`datatypes.numeric_test_table` (bit BIT NULL, bit1 BIT(1) NULL, bit64 BIT(64) NULL, `tinyint` TINYINT NULL, `tinyint.unsigned` TINYINT unsigned NULL, bool TINYINT(1) NULL, boolean TINYINT(1) NULL, `smallint` SMALLINT NULL, `smallint.unsigned` SMALLINT unsigned NULL, `mediumint` MEDIUMINT NULL, `mediumint.unsigned` MEDIUMINT unsigned NULL, `int` INT NULL, `int.unsigned` INT unsigned NULL, `bigint` BIGINT NULL, `bigint.unsigned` BIGINT unsigned NULL, `decimal` DECIMAL NULL, `decimal.max` DECIMAL(65, 30) NULL, `float` FLOAT NULL, `float.10.10` FLOAT(10, 10) NULL, double_precision_column DOUBLE PRECISION(5, 2) NULL, precision_column DOUBLE(5, 2) NULL)
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ALTER TABLE lbcat.authors ADD booleanColumn BIT(1) NULL
ALTER TABLE lbcat.authors ADD booleanColumn TINYINT(1) NULL
ALTER TABLE lbcat.authors ALTER booleanColumn SET DEFAULT 1
Original file line number Diff line number Diff line change
@@ -1 +1 @@
CREATE TABLE lbcat.`datatypes.numeric_test_table` (bit BIT NULL, bit1 BIT(1) NULL, bit64 BIT(64) NULL, `tinyint` TINYINT NULL, `tinyint.unsigned` TINYINT unsigned NULL, bool BIT(1) NULL, boolean BIT(1) NULL, `smallint` SMALLINT NULL, `smallint.unsigned` SMALLINT unsigned NULL, `mediumint` MEDIUMINT NULL, `mediumint.unsigned` MEDIUMINT unsigned NULL, `int` INT NULL, `int.unsigned` INT unsigned NULL, `bigint` BIGINT NULL, `bigint.unsigned` BIGINT unsigned NULL, `decimal` DECIMAL NULL, `decimal.max` DECIMAL(65, 30) NULL, `float` FLOAT NULL, `float.10.10` FLOAT(10, 10) NULL)
CREATE TABLE lbcat.`datatypes.numeric_test_table` (bit BIT NULL, bit1 BIT(1) NULL, bit64 BIT(64) NULL, `tinyint` TINYINT NULL, `tinyint.unsigned` TINYINT unsigned NULL, bool TINYINT(1) NULL, boolean TINYINT(1) NULL, `smallint` SMALLINT NULL, `smallint.unsigned` SMALLINT unsigned NULL, `mediumint` MEDIUMINT NULL, `mediumint.unsigned` MEDIUMINT unsigned NULL, `int` INT NULL, `int.unsigned` INT unsigned NULL, `bigint` BIGINT NULL, `bigint.unsigned` BIGINT unsigned NULL, `decimal` DECIMAL NULL, `decimal.max` DECIMAL(65, 30) NULL, `float` FLOAT NULL, `float.10.10` FLOAT(10, 10) NULL)
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
CREATE TABLE LTHDB."PUBLIC".valueSequenceNextTable (test_id INT, test_column VARCHAR(50));
CREATE SEQUENCE "PUBLIC".test_sequence START WITH 30 INCREMENT BY 2;
UPDATE LTHDB."PUBLIC".valueSequenceNextTable SET test_id = "PUBLIC".test_sequence.nextval;