Skip to content

Commit

Permalink
gen: fixed SQLServer dev-url (#334)
Browse files Browse the repository at this point in the history
  • Loading branch information
giautm authored Sep 20, 2024
1 parent 89b0489 commit 16a3ce0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions gen/services.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@
{{- end -}}
{{- else if eq .Driver "mssql" -}}
{{- if .SchemaScope -}}
dev-url: 'sqlserver://sa:P@ssw0rd0995@localhost:1433/test?mode=schema'
dev-url: 'sqlserver://sa:P@ssw0rd0995@localhost:1433?database=master'
{{- else -}}
dev-url: 'sqlserver://sa:P@ssw0rd0995@localhost:1433/test'
dev-url: 'sqlserver://sa:P@ssw0rd0995@localhost:1433?database=master&mode=database'
{{- end -}}
{{- end -}}
{{- end -}}
4 changes: 2 additions & 2 deletions gen/testdata/mssql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ jobs:
with:
dir: 'file://migrations'
dir-name: 'name'
dev-url: 'sqlserver://sa:P@ssw0rd0995@localhost:1433/test'
dev-url: 'sqlserver://sa:P@ssw0rd0995@localhost:1433?database=master&mode=database'
env:
GITHUB_TOKEN: ${{ github.token }}
- uses: ariga/atlas-action/migrate/push@v1
if: github.ref == 'refs/heads/master'
with:
dir: 'file://migrations'
dir-name: 'name'
dev-url: 'sqlserver://sa:P@ssw0rd0995@localhost:1433/test'
dev-url: 'sqlserver://sa:P@ssw0rd0995@localhost:1433?database=master&mode=database'

0 comments on commit 16a3ce0

Please sign in to comment.