Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-11147

support alter table add if not exists

    XMLWordPrintableJSON

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

          Activity

            People

              Unassigned Unassigned
              rustyrazorblade Jon Haddad
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: