migrate/database/cockroachdb/examples/migrations
Taylor Wrobel 1d8a881941 Add CockroachDB Support
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)
2017-07-07 23:12:07 -07:00
..
1085649617_create_users_table.down.sql Add CockroachDB Support 2017-07-07 23:12:07 -07:00
1085649617_create_users_table.up.sql Add CockroachDB Support 2017-07-07 23:12:07 -07:00
1185749658_add_city_to_users.down.sql Add CockroachDB Support 2017-07-07 23:12:07 -07:00
1185749658_add_city_to_users.up.sql Add CockroachDB Support 2017-07-07 23:12:07 -07:00
1285849751_add_index_on_user_emails.down.sql Add CockroachDB Support 2017-07-07 23:12:07 -07:00
1285849751_add_index_on_user_emails.up.sql Add CockroachDB Support 2017-07-07 23:12:07 -07:00
1385949617_create_books_table.down.sql Add CockroachDB Support 2017-07-07 23:12:07 -07:00
1385949617_create_books_table.up.sql Add CockroachDB Support 2017-07-07 23:12:07 -07:00
1485949617_create_movies_table.down.sql Add CockroachDB Support 2017-07-07 23:12:07 -07:00
1485949617_create_movies_table.up.sql Add CockroachDB Support 2017-07-07 23:12:07 -07:00
1585849751_just_a_comment.up.sql Add CockroachDB Support 2017-07-07 23:12:07 -07:00
1685849751_another_comment.up.sql Add CockroachDB Support 2017-07-07 23:12:07 -07:00
1785849751_another_comment.up.sql Add CockroachDB Support 2017-07-07 23:12:07 -07:00
1885849751_another_comment.up.sql Add CockroachDB Support 2017-07-07 23:12:07 -07:00