759 Commits

Author SHA1 Message Date
Nathan Collard
7817573893 Merge remote-tracking branch 'root/master' 2019-05-21 08:21:33 +01:00
Dale Hui
923901c81f Cleanup regex usage in spanner DB driver
- Only compile a regex once for re-use
    - Don't use regex unnecessarily (removing trailing semicolon)
    - Add test for parsing multiple statements in a migration
2019-05-20 08:28:07 -07:00
Dale Hui
bd81e32d1a Mark testing package as deprecated 2019-05-19 16:52:41 -07:00
nathan-c
e211c5b5f5 mssql: increase pull timeout 2019-05-19 21:36:50 +01:00
nathan-c
98e5f88b9f mssql: fix error parsing and add tests 2019-05-19 16:08:15 +01:00
nathan-c
5ac583ba7b mssql: fix linter errors 2019-05-19 15:21:25 +01:00
nathan-c
3bd91a774e mssql: reorder readme 2019-05-19 15:15:07 +01:00
nathan-c
95290f2fbd mssql: change migration table name and add readme 2019-05-19 15:09:56 +01:00
nathan-c
14e6c50d2e fix mssql build flag 2019-05-19 14:47:09 +01:00
nathan-c
c273636efe parse mssql errors 2019-05-19 14:08:10 +01:00
nathan-c
2fbec2f760 update mssql driver module 2019-05-19 13:43:47 +01:00
nathan-c
ae500dbe45 finish implementing mssql db and add tests 2019-05-19 13:37:40 +01:00
nathan-c
50e972912d Merge remote-tracking branch 'evosure/mssql' 2019-05-18 14:39:55 +01:00
Dale Hui
e364488761
Merge pull request #220 from Flaque/patch-1
Fix Broken Markdown in cli/README.md
2019-05-16 12:15:54 -07:00
Evan Conrad
c7e9414bfe
Fix Broken Markdown in cli/README.md 2019-05-16 11:30:01 -07:00
Dale Hui
f2e5e31837
Remove offical Firebird support from README 2019-04-26 22:52:56 -07:00
Dale Hui
10e2545ceb Update dependencies to resolve: https://github.com/golang-migrate/migrate/issues/202 2019-04-26 19:09:13 -07:00
Dale Hui
89970b8951 Bring built-in and supported sources and databases into parity 2019-04-26 19:04:37 -07:00
Dale Hui
66510b82c4 Remove official support for Firebird
- In the future, support for Firebird should also include v2.5
2019-04-26 19:04:05 -07:00
Kirill Muratov
6c96ef02df Enabled maligned, staticcheck and errcheck linters (#206)
* Enabled maligned check

* Enabled staticcheck

* Fixes for golint

* Enabled errcheck linter

* Added fixes for error check

* Added errcheck for tests

* Fixed test

* Increased golangci-lint deadline for travis

* Increased golangci-lint deadline for travis

* Decreased golangci-lint deadline for travis

* Revert for backward compatibility

* Using log.Println() instead of fmt.Println()

* Handling os.RemoveAll() errors

* Using t.Error(error) instead of t.Errorf("%v", err)

* Using t.Fatal(error) instead of t.Fatalf("%v", err)

* Using fmt.Sprint(sum) instead of t.Srintf("%v", sum)

* Refactoring

* Revert for backward compatibility

* Revert

* go mod tidy

* Added error logging

* Added error logging

* Added error handling

* Added error handling

* Added error logging

* Fix error logging

* Added error handling

* Fix

* Added logging for migr.Buffer()

* Fixes

* Firebird test disabled

* Fixed nolint comment

* Updated firebird docker image version

* Disabled test for firebird 2.5

* Fixed // nolint
2019-04-26 15:47:16 -07:00
Dale Hui
ddc72468fc Update packages that depend on the wrong golint import path
Addresses: https://github.com/golang-migrate/migrate/issues/202
2019-04-09 00:31:17 -07:00
Dale Hui
16197b67e3 Update to golangci-lint v1.16.0
- Fix newly raised issues
2019-04-07 00:51:27 -07:00
Dale Hui
6e2056f5b4 Include firebird db driver in default builds 2019-04-05 23:25:57 -07:00
Dale Hui
8d63b3f95b Remove spurious list item 2019-03-28 21:35:54 -07:00
Dale Hui
43e4503343 Update golangci-lint config and implore contributors to use it
- Run golangci-lint on tests and fix found issues
2019-03-28 18:55:12 -07:00
Dale Hui
c1404f0f98
Merge pull request #194 from kmuratov/master
Enabled golangci-lint
2019-03-28 11:57:10 -07:00
Kirill Muratov
46ee425bac Updated golangci.yml 2019-03-28 19:30:02 +03:00
Kirill Muratov
81f457f379 Added newline 2019-03-26 22:05:47 +03:00
Kirill Muratov
07c594d988 Added scopelint check 2019-03-26 22:01:12 +03:00
Kirill Muratov
be4c129168 Added interfacer, unconvert, goconst, nakedret, prealloc 2019-03-23 00:40:35 +03:00
Kirill Muratov
ef4a805b02 Added misspell linter 2019-03-22 23:57:00 +03:00
Kirill Muratov
5059f0bee6 Fixes for govet 2019-03-22 23:05:19 +03:00
Kirill Muratov
c31948caeb Fixed dockerclient.NewEnvClient is depricated 2019-03-22 22:47:24 +03:00
Kirill Muratov
2758eb210f Fixes for unused linter 2019-03-22 22:08:29 +03:00
Kirill Muratov
465060c9a7 Fixes for gosimple linter 2019-03-22 22:02:08 +03:00
Kirill Muratov
8f6bfb0295 Added golangci-lint config 2019-03-22 21:11:31 +03:00
Dale Hui
cac03318eb
List Gitlab as a supported source 2019-03-21 01:54:59 -07:00
Dale Hui
7bf5fd7859
Add missing backtick 2019-03-21 01:54:41 -07:00
Kirill Muratov
2c9773ed89 Added Firebird support (#191)
* Added Firebird support

* Fixed typo

* Refactoring

* Schema migrations table name don't have to be upper case

* Fixed readme

* Added Firebird 2.5 support

* Removed SchemaName

* Refactoring
2019-03-21 01:51:49 -07:00
Cyrille Hemidy
46fb82ce3d Fmt (#189)
* fix gofmt -s

* fix gofmt -s + fix mispelling
2019-03-13 12:15:21 -07:00
Bence Patyi
144aaaa986 Gitlab source (#184)
* New Gitlab source

* fix: use net package to build url string

* add: gitlab source to Makefile and Dockerfile
2019-03-10 18:38:23 -07:00
Dale Hui
14f26d8818
Update supported Go versions badge
Drop 1.10 and add 1.12
2019-03-07 11:42:22 -08:00
Dale Hui
f8f7beea54 Deploy using Go 1.12 2019-03-02 02:04:53 -08:00
Dale Hui
c6c22b34c8
Fix broken "versions" table formatting in README 2019-03-01 18:52:20 -08:00
Dale Hui
752cdc3b11 Update "versions" table in the README
- Reflect supported versions
    - With Go 1.12 released, module support is no longer an issue
2019-03-01 18:49:12 -08:00
Dale Hui
f5c4ccff1f Update dependencies 2019-03-01 17:45:37 -08:00
Dale Hui
5e004dbef4 Fix issues with new version of MongoDB driver:
- "connect=single" option is no longer supported
        - "connect=direct" is the equivalent
        - https://jira.mongodb.org/browse/GODRIVER-665
    - Count() needs to be passed a non-nil filter/document
        - https://jira.mongodb.org/browse/GODRIVER-572
2019-03-01 17:44:40 -08:00
Dale Hui
4fba554b47 Drop support for go1.10
- Remove dep package pinnings
2019-03-01 14:37:54 -08:00
Dale Hui
6593dc8dbf Support Go 1.12 2019-02-27 23:44:23 -08:00
Lukas Joergensen
480a5a634a postgres: Move lock out of ensureVersionTable, for consistency with other SQL operations (#173)
* Consistently lock in ensureVersionTable and do not call ensureVersionTable from Drop across all database implementations

* Add test for dropping postgres databases

* Fix failing database tests

* Fix CockroachDb test, lock table should be created before versionTable

* Add Initialize() to Driver interface, and add integration tests for Drop() between database implementations and migrate

* Remove Initialize, document breaking behaviour of Drop

* Revert introduction of Initialize method

* Removed Initialize in Stub as well

* Remove call to non-existent Initialize and make sure to close re-initialized database connections

* Revert changes to TestDrop in database/testing

* Split Test and TestMigrate into different test entrypoints

* Remove unused import in migrate_testing

* Remove erroneous code to fix tests

* Add stub source imports to database tests

* Add Stub source to migrate tests

* Use example migrations for tests

* Add file driver to database tests

* Align database directory layout

* Add file source driver to Cassandra

* Review changes

* Minor syntactic change for cleaner diff
2019-02-26 15:56:57 -08:00