Details
-
Improvement
-
Status: Resolved
-
Normal
-
Resolution: Duplicate
-
None
-
None
-
None
Description
Keeping database schema up to date is a pain when needing to check if column definitions are already set. Since we already have if not exists for create table & keyspace, I think it's only logical to add for adding columns.
For example:
ALTER TABLE whatever add if not exists name int;
This would let a team treat a series of DDL statements as an append only commit log of CQL statements.
Attachments
Issue Links
- duplicates
-
CASSANDRA-8492 Support "IF NOT EXISTS" for "ALTER TABLE ADD COLUMN"
- Resolved
- is superceded by
-
CASSANDRA-14706 Support "IF EXISTS/IF NOT EXISTS" for all clauses of "ALTER TABLE"
- Resolved