github.com/matcornic/migrate@v3.3.2-0.20180717234201-feea45c20506+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  | `username` | nil | Username to use when authenticating. |
    20  | `password` | nil | Password to use when authenticating. |
    21  
    22  
    23  `timeout` is parsed using [time.ParseDuration(s string)](https://golang.org/pkg/time/#ParseDuration)
    24  
    25  
    26  ## Upgrading from v1
    27  
    28  1. Write down the current migration version from schema_migrations
    29  2. `DROP TABLE schema_migrations`
    30  4. Download and install the latest migrate version.
    31  5. Force the current migration version with `migrate force <current_version>`.