Skip to content

Commit 8437fe6

Browse files
authored
Merge pull request #227 from zhevron/mssql-params
Fix incorrect syntax errors for MSSQL driver
2 parents e877644 + dd0ead0 commit 8437fe6

22 files changed

+43
-39
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ WORKDIR /go/src/github.com/golang-migrate/migrate
88
COPY . ./
99

1010
ENV GO111MODULE=on
11-
ENV DATABASES="postgres mysql redshift cassandra spanner cockroachdb clickhouse mongodb mssql"
11+
ENV DATABASES="postgres mysql redshift cassandra spanner cockroachdb clickhouse mongodb sqlserver"
1212
ENV SOURCES="file go_bindata github aws_s3 google_cloud_storage godoc_vfs gitlab"
1313

1414
RUN go build -a -o build/migrate.linux-386 -ldflags="-X main.Version=${VERSION}" -tags "$DATABASES $SOURCES" ./cmd/migrate

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
SOURCE ?= file go_bindata github aws_s3 google_cloud_storage godoc_vfs gitlab
2-
DATABASE ?= postgres mysql redshift cassandra spanner cockroachdb clickhouse mongodb mssql
2+
DATABASE ?= postgres mysql redshift cassandra spanner cockroachdb clickhouse mongodb sqlserver
33
VERSION ?= $(shell git describe --tags 2>/dev/null | cut -c 2-)
44
TEST_FLAGS ?=
55
REPO_OWNER ?= $(shell cd .. && basename "$$(pwd)")

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Database drivers run migrations. [Add a new database?](database/driver.go)
3737
* [CockroachDB](database/cockroachdb)
3838
* [ClickHouse](database/clickhouse)
3939
* [Firebird](database/firebird) ([todo #49](https://github.com/golang-migrate/migrate/issues/49))
40-
* [MS SQL Server](database/mssql)
40+
* [MS SQL Server](database/sqlserver)
4141

4242
### Database URLs
4343

database/mssql/README.md renamed to database/sqlserver/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,7 @@
1919

2020
See https://github.com/denisenkom/go-mssqldb for full parameter list.
2121

22+
## Note about driver support
23+
24+
Please note that the deprecated `mssql` driver is not supported. Please use the newer `sqlserver` driver.
25+
See https://github.com/denisenkom/go-mssqldb#deprecated for more information.

0 commit comments

Comments
 (0)