Skip to content

Commit

Permalink
Merge pull request #85 from liquibase/cassandra-4.0
Browse files Browse the repository at this point in the history
Cassandra 3.11
  • Loading branch information
r2-lf authored Jun 3, 2021
2 parents 2a9e625 + 905a003 commit cb359c1
Show file tree
Hide file tree
Showing 8 changed files with 56 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/test/resources/harness-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,10 @@ databasesUnderTest:
username: cassandra
password: cassandra
dbSchema: betterbotz
#
# - name: cassandra
# version: 4.0
# url: jdbc:cassandra://localhost:9043;DefaultKeyspace=betterbotz
# username: cassandra
# password: cassandra
# dbSchema: betterbotz
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?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-3.8.xsd">
<changeSet id="1" author="oleh">
<createTable tableName="test_table_timestamp">
<column name="test_id" type="int">
<constraints primaryKey="true"/>
</column>
<column name="test_column" type="timestamp"/>
</createTable>
</changeSet>
</databaseChangeLog>
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@
<constraints nullable="false"/>
</column>
</createTable>
<dropTable tableName="test_table"/>
<rollback/>
</changeSet>
<changeSet author="r2" id="2">
<dropTable tableName="test_table"/>
<rollback/>
</changeSet>
</databaseChangeLog>
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"snapshot": {
"objects": {
"liquibase.structure.core.Table": [
{
"table": {
"name": "test_table_timestamp"
}
}
],
"liquibase.structure.core.Column": [
{
"column": {
"name": "test_id"
},
"column": {
"name": "test_column"
}
}
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INVALID TEST
-- Cassandra does not support stored procedures
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INVALID TEST
-- Cassandra does not support stored procedures
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CREATE TABLE test_table_timestamp (test_id INT, test_column timestamp, PRIMARY KEY (test_id))
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INVALID TEST
-- Cassandra does not support stored procedures

0 comments on commit cb359c1

Please sign in to comment.