Details
-
New Feature
-
Status: Resolved
-
Low
-
Resolution: Duplicate
-
None
Description
Like so:
ALTER TABLE <table> ALTER <column> TYPE <newtype>; ALTER TABLE [ IF EXISTS ] <table> ADD [ IF NOT EXISTS ] <coumn> <newtype>; ALTER TABLE [ IF EXISTS ] <table> ADD [ IF NOT EXISTS ] (<column> <newtype>,<column1> <newtype1>..... <column n> <newtype n>); ALTER TABLE [ IF EXISTS ] <table> DROP [ IF EXISTS ] <column>; ALTER TABLE [ IF EXISTS ] <table> DROP [ IF EXISTS ] ( <column>,<column1>.....<column n>); ALTER TABLE [ IF EXISTS ] <table> RENAME [ IF EXISTS ] <column> TO <column>; ALTER TABLE [ IF EXISTS ] <table> WITH <property> = <value>;
I think common IF EXISTS/IF NOT EXISTS clause for ADD/DROP/RENAME better than clause for each column.
Attachments
Issue Links
- duplicates
-
CASSANDRA-16916 Add support for IF EXISTS and IF NOT EXISTS in ALTER statements
- Resolved
- supercedes
-
CASSANDRA-11147 support alter table add if not exists
- Resolved
-
CASSANDRA-8492 Support "IF NOT EXISTS" for "ALTER TABLE ADD COLUMN"
- Resolved
- links to