Skip to content

Commit 1d16030

Browse files
mprimeauxthibaultcha
authored andcommitted
fix(dao) assume C* > 3.x will use the same system schema
To ensure that Kong works with DataStax DSE 6.0 (which uses Cassandra 4.x), we can for now assume that the system schema will be identical as that of Cassandra 3.x. This does NOT mean Kong is compatible with Cassandra 4.x, and is only meant as a temporary hotfix for users wishing to run/test Kong with advanced versions of Cassandra. Fix #3410 Signed-off-by: Thibault Charbonnier <thibaultcha@me.com>
1 parent 53e513d commit 1d16030

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

kong/dao/db/cassandra.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,10 @@ function _M:current_migrations()
697697
end
698698
end
699699

700-
if self.major_version_n == 3 then
700+
-- For now we will assume that a release version number of 3 and greater
701+
-- will use the same schema. This is recognized as a hotfix and will be
702+
-- revisited for a more considered solution at a later time.
703+
if self.major_version_n >= 3 then
701704
q_keyspace_exists = [[
702705
SELECT * FROM system_schema.keyspaces
703706
WHERE keyspace_name = ?

0 commit comments

Comments
 (0)