github.com/postmates/migrate@v3.0.2-0.20200730201548-1a6ead3e680d+incompatible/database/cassandra/README.md (about)

     1  # Cassandra
     2  
     3  * Drop command will not work on Cassandra 2.X because it rely on
     4  system_schema table which comes with 3.X
     5  * Other commands should work properly but are **not tested**
     6  
     7  
     8  ## Usage
     9  `cassandra://host:port/keyspace?param1=value&param2=value2`
    10  
    11  
    12  | URL Query  | Default value | Description |
    13  |------------|-------------|-----------|
    14  | `x-migrations-table` | schema_migrations | Name of the migrations table |
    15  | `port` | 9042 | The port to bind to  |
    16  | `consistency` | ALL | Migration consistency
    17  | `protocol` |  | Cassandra protocol version (3 or 4)
    18  | `timeout` | 1 minute | Migration timeout
    19  
    20  
    21  `timeout` is parsed using [time.ParseDuration(s string)](https://golang.org/pkg/time/#ParseDuration)
    22  
    23  
    24  ## Upgrading from v1
    25  
    26  1. Write down the current migration version from schema_migrations
    27  2. `DROP TABLE schema_migrations`
    28  4. Download and install the latest migrate version.
    29  5. Force the current migration version with `migrate force <current_version>`.