Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 706e60b

Browse files
authored
chore: pluralize table names (#463)
1 parent edd8345 commit 706e60b

21 files changed

+339
-247
lines changed

.github/workflows/coder.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
- name: Install Protoc
8080
uses: arduino/setup-protoc@v1
8181
with:
82-
version: "3.6.1"
82+
version: "3.19.4"
8383
- uses: actions/setup-go@v2
8484
with:
8585
go-version: "^1.17"
@@ -370,4 +370,4 @@ jobs:
370370
DATADOG_API_KEY: ${{ secrets.DATADOG_API_KEY }}
371371
DD_CATEGORY: e2e
372372
GIT_COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
373-
run: go run scripts/datadog-cireport/main.go site/test-results/junit.xml
373+
run: go run scripts/datadog-cireport/main.go site/test-results/junit.xml

.golangci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,13 +184,15 @@ linters-settings:
184184
- r
185185
- i
186186
- db
187+
- t
187188
# Optional list of variable declarations that should be ignored completely. (defaults to empty list)
188189
# Entries must be in the form of "<variable name> <type>" or "<variable name> *<type>" for
189190
# variables, or "const <name>" for constants.
190191
ignore-decls:
191192
- rw http.ResponseWriter
192193
- r *http.Request
193194
- t testing.T
195+
- t testing.TB
194196

195197
issues:
196198
# Rules listed here: https://github.com/securego/gosec#available-rules

coderd/coderd.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ type Options struct {
2727

2828
// New constructs the Coder API into an HTTP handler.
2929
//
30-
// A wait function is returned to handle awaiting closure
31-
// of hijacked HTTP requests.
30+
// A wait function is returned to handle awaiting closure of hijacked HTTP
31+
// requests.
3232
func New(options *Options) (http.Handler, func()) {
3333
api := &api{
3434
Options: options,

coderd/coderdtest/coderdtest.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func New(t *testing.T, options *Options) *codersdk.Client {
6161
t.Cleanup(func() {
6262
_ = sqlDB.Close()
6363
})
64-
err = database.Migrate(sqlDB)
64+
err = database.MigrateUp(sqlDB)
6565
require.NoError(t, err)
6666
db = database.New(sqlDB)
6767

database/dump.sql

Lines changed: 95 additions & 95 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

database/dump/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func main() {
2424
if err != nil {
2525
panic(err)
2626
}
27-
err = database.Migrate(db)
27+
err = database.MigrateUp(db)
2828
if err != nil {
2929
panic(err)
3030
}

0 commit comments

Comments
 (0)