mirror of https://github.com/status-im/migrate.git
1d8a881941
Adds support for CockroachDB. Cockroach uses the postges wire protocol and has a large amount of common SQL functionality shared with Postgres, so much of the postgres code was able to be copied and modified. Since the protocol is used in determining the driver, and the Postgres protocol is also used by Cockroach, new connect string prefixes were added: cockroach:// cockroachdb:// and crdb-postgres://. These fake protocol strings are replaced in the connect function with the correct `postgres://` protocol. TODO: Tests needed (Cockroach has a docker image, so this shouldn't be too hard) |
||
---|---|---|
.. | ||
1085649617_create_users_table.down.sql | ||
1085649617_create_users_table.up.sql | ||
1185749658_add_city_to_users.down.sql | ||
1185749658_add_city_to_users.up.sql | ||
1285849751_add_index_on_user_emails.down.sql | ||
1285849751_add_index_on_user_emails.up.sql | ||
1385949617_create_books_table.down.sql | ||
1385949617_create_books_table.up.sql | ||
1485949617_create_movies_table.down.sql | ||
1485949617_create_movies_table.up.sql | ||
1585849751_just_a_comment.up.sql | ||
1685849751_another_comment.up.sql | ||
1785849751_another_comment.up.sql | ||
1885849751_another_comment.up.sql |