Alex Jbanca
a2c45febab
Merge pull request #4 from status-im/chore/upgrade-sqlcipher
...
chore(upgradeSQLCipher): Upgrading sqlcipher to v4
v4.6.2-status.3
2023-05-31 18:28:24 +03:00
Alex Jbanca
4d033bfe63
chore(upgradeSQLCipher): Upgrading sqlcipher to v4
2023-05-31 18:10:12 +03:00
Adam Babik
6499361c74
use v4 in sqlcipher_test
v4.6.2-status.2
2019-10-14 12:14:06 +02:00
Adam Babik
127a8fab83
Use internal packages from status-im/migrate ( #3 )
v4.6.2-status.1
2019-10-14 11:50:33 +02:00
Andrea Maria Piana
604309dd45
configurable migration table
v4.6.2-status.0
2019-10-14 10:50:56 +02:00
Adam Babik
d4b77d81b5
use v4 in sqlcipher
2019-10-14 10:50:56 +02:00
Adam Babik
304b95f8e5
Update module name in go.mod ( #1 )
...
Since this module supports go modules, it can't work as a standalone module with fork's module name if both this module and fork are required.
2019-10-14 10:50:54 +02:00
Andrea Maria Piana
9b09c4f75c
Add sqlcipher
2019-10-14 10:50:27 +02:00
Dale Hui
bbe4ec3cde
Update golangci-lint to v1.20.0
2019-10-12 15:14:27 -07:00
Dale Hui
84f30c64d0
Specify the expected min go version as 1.12
2019-10-12 15:14:21 -07:00
Dale Hui
fc060940b4
Merge pull request #287 from ctuong/pg-lock-comment
...
Update postgres driver Lock comment to reflect actual behavior
2019-09-25 00:57:45 -07:00
Calvin Tuong
9ef241d273
Update postgres driver Lock comment to reflect actual behavior
2019-09-24 13:57:01 -07:00
Dale Hui
002e0aced4
Update golangci-lint to v1.18.0 for Go 1.13 compatibility
2019-09-17 02:21:45 -07:00
Dale Hui
be590bf1b9
Drop support for Go 1.11 and add support for Go 1.13
2019-09-09 08:00:12 -07:00
Peter Dotchev
3dc81826fd
Improve error message in case no migration is found ( #158 )
...
* Improve error message in case no migration is found
* Return similar error
* Just log the error
* Fix error message
2019-08-29 20:09:02 -07:00
Dale Hui
b6df2cab18
Merge pull request #277 from ch3rub1m/bugfix-remove-debug-output
...
Remove debug output
2019-08-29 00:45:16 -07:00
ch3rub1m
0601111d88
Remove debug output
2019-08-28 18:36:44 +08:00
Dale Hui
0064ee83cf
Properly filter out custom query params in MySQL DB driver
...
Addresses: https://github.com/golang-migrate/migrate/issues/272
2019-08-22 00:03:26 -07:00
Dale Hui
a354c6d446
Run go mod tidy
2019-08-22 00:00:09 -07:00
Erik Dubbelboer
e5b4be7771
Let database.Open() use schemeFromURL as well ( #271 )
...
* Let database.Open() use schemeFromURL as well
Otherwise it will fail on MySQL DSNs.
Moved schemeFromURL into the database package. Also removed databaseSchemeFromURL
and sourceSchemeFromURL as they were just calling schemeFromURL.
Fixes https://github.com/golang-migrate/migrate/pull/265#issuecomment-522301237
* Moved url functions into internal/url
Also merged the test cases.
* Add some database tests to improve coverage
* Fix suggestions
2019-08-20 09:59:15 -07:00
Sebastiaan van Stijn
d5960ade4a
Docker: restore "from env" behavior, and perform API version negotiation ( #270 )
...
* NewDockerContainer: restore "from env" behavior
commit c31948caebf21924fbf624cc863a8fa68ffd46cb replaced the deprecated
`dockerclient.NewEnvClient` with `dockerclient.NewClientWithOpts`, but
did not add the `FromEnv` option to keep the old behavior.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
* NewDockerContainer: use API version negotiation
This helps in situations where the daemon is older than
the API client. API version negotiation checks the maximum
supported API version by the daemon, and downgrades to that
API version if needed.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-08-20 08:42:07 -07:00
Dale Hui
d068374972
Test against MS SQL Server 2019-CTP3.1 (Ubuntu)
2019-08-18 23:37:33 -07:00
Dale Hui
947936279a
Update firebird README to reflect lack of official support
2019-08-18 23:34:07 -07:00
Dale Hui
42492c82ca
Update golangci-lint from v1.16.0 to v1.17.1
2019-08-17 10:50:42 -07:00
Dale Hui
97cfb4d2a6
Merge pull request #267 from zikaeroh/fix-mongodb-dep
...
Update MongoDB driver to 1.1.0, use correct import path
2019-08-17 10:20:45 -07:00
zikaeroh
d80e0e2f7f
Merge branch 'master' into fix-mongodb-dep
2019-08-17 08:13:16 -07:00
Erik Dubbelboer
eb7d0dd6a1
Fix in the URL parser with go 1.12.8 and github.com/go-sql-driver/mysql ( #265 )
...
* Fix in the URL parser with go 1.12.8 and github.com/go-sql-driver/mysql
Change schemeFromURL to just split the url by :// to find the scheme.
It's not required to parse the whole URL. MySQL DSNs aren't valid URLs.
Fixes #264
* The mysql driver itself also used net/url.Parse
* Also fix TestPasswordUnencodedReservedURLChars
* Keep backwards compatibility with url encoded username and passwords
* Fix suggestions
* Reuse old function names
2019-08-16 23:09:12 -07:00
zikaeroh
9e406c40b5
Update MongoDB driver to 1.1.0, use correct import path
2019-08-14 17:40:52 -07:00
Dale Hui
b071731cc2
Merge pull request #258 from mknycha/add-tutorial-for-getting-started
...
Add getting started docs and Postgres tutorial
2019-08-13 08:31:01 -07:00
Marcin K
d3ec78d996
Use different word
2019-08-13 16:40:03 +02:00
Marcin K
98c383cc42
Update info regarding migrations inconsistency
2019-08-13 16:38:16 +02:00
Marcin K
12f7e22e36
Put tutorial specific info into a separate file
2019-08-11 22:06:04 +02:00
Dale Hui
6c7d3123c2
Merge pull request #260 from groyoh/exit_status
...
Change exit status to 2 on command error
2019-08-10 02:16:59 -07:00
Marcin K
86e4e4965d
FAQ: Add question regarding non-Go project usage
2019-08-09 18:50:24 +02:00
Marcin K
d0c2e446b7
Remove hint regarding Makefile
...
As it is too much environment-specific
2019-08-09 18:46:57 +02:00
Marcin K
bb1e9dd3ae
Describe database transactions
2019-08-09 18:46:04 +02:00
Yohan Robert
dc5b8a46c6
Add documentation for exit 2
2019-08-09 15:15:29 +02:00
Marcin K
d90f7d51aa
Cosmetics
2019-08-08 21:03:54 +02:00
Marcin K
d6fa9be6e6
Add a caveat regarding DB lock when running migrations
2019-08-08 21:03:00 +02:00
Marcin K
fb4fb978e1
Use idempotent queries
2019-08-08 20:34:21 +02:00
Marcin K
604f1254ba
Use sequential migrations naming in example
...
And add migration conflicts description
2019-08-08 20:11:05 +02:00
Marcin K
b49854bde5
TUTORIAL: Use password explicitly
2019-08-07 22:36:20 +02:00
Marcin K
fb771c8dd8
Rephrase, list created files
2019-08-07 22:35:22 +02:00
Marcin K
44b07c5f7b
Use reverse/down migration instead of rollback
2019-08-07 22:01:04 +02:00
Marcin K
e98f9f6a24
FAQ: Remove driver specific info
2019-08-07 21:52:15 +02:00
Yohan Robert
95623b991f
Change exit status to 2 on command error
...
The default exit status when a command cannot be found was 0.
This can cause migrate to fail "silently" in case of typos.
Given that providing an invalid flag causes the program to exit
with a exit status set to 2, the default exit status was also set to 2.
2019-08-07 20:13:16 +02:00
Marcin K
1d402e46a8
Tutorial: Remove info about migration version table
2019-08-07 01:09:26 +02:00
Marcin K
d7e0e40e0a
FAQ: Add one more question
2019-08-07 01:07:29 +02:00
Marcin K
74b9fdb3cb
Add reference to README
2019-08-07 01:01:15 +02:00
Marcin K
01107cb677
Add tutorial file
2019-08-07 01:00:58 +02:00