forked from mattes/migrate
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Få migrate til å bygge igjen #1
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Using epoch prefixed filenames, multiple developers can commit migrations while minimizing versioning conflicts. This commit remains backwards compatible with all previous migrations and requires no changes to the `schema_migrations` table. This commit also cleans up migrate-test temp directories
If a non pq error is returned, we rollback and return the error
…chance to select the correct driver
- Added go methods migrator, mongo db template: different from the usual driver model. - Added support for bidirectional files (for go methods), appending _up or _down upon context - Added DriverWithFilnameParser for providing custom filename parser functionality that knows to parse bi-directional file names.
- Changed logic not to use custom filename parser: -Supporting up and down files only, no both direction files -Using method names as is - Added complete test to the mongo db migration scenarios
…cific methods - defined methods receivers registration by name and change the migration files format to include them - added extensive testing
- currently each driver contains only a single method receiver: - enforcing method receiver pre-registration on go methods driver initialization - Method receiver name can be removed from files format - passing the DbName parameter inside the method receiver for the go methods driver
- Added docker support
Call Close() in Version()
…kes a pointer receiver
driver/sqlite3: Fix for upstream changes
Seems the sqlite3 packaged reverted to using non-pointer Error. This patch corrects the use of it here.
fixing error cast for sqlite3
According to the PostgreSQL documentation (section 32.1.1.2), postgres library supports two URI schemes: postgresql:// and postgres:// Reference: https://www.postgresql.org/docs/current/static/libpq-connect.html#LIBPQ-CONNSTRING
Support for alternative postgres URI scheme
Fix getting the latest version
MSSQL support
v1: github.com/mattes/migrate -> gopkg.in/mattes/migrate.v1
Neo4J supports both `http` and `https` connections, however `https` connections weren't supported previously as the `neo4j` URL scheme currently used to identify the driver type is always substituted for just `http`. This PR also registers the driver under an alternate key: `neo4js` which given the way the scheme substitution happens, should allow the driver to correctly create an `https` connection URL. This will allow the library to be used for cases where we don't have access to the plain `http` endpoint.
Register neo4j driver using a pseudo `neo4js` protocol scheme.
TravisCI Updates
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Har gjort følgende:
Merget inn endringer på v1-grenen, bl.a. er det nyttig at import nå er versjonert ved hjelp av gopkg.in
Fjernet mysql - den kompilerer for tiden ikke mot v1, og vi bruker den ikke.
Oppdatert cassandra.go for å kompilere mot siste versjon av gocql.
Etter dette kan for øvrig Dockerfilen i cassandra-schema forenkles