Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
vmihailenco committed Oct 5, 2021
1 parent 318c11c commit 0033a06
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
10 changes: 2 additions & 8 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,13 @@ cd internal/dbtest
1. Run `release.sh` script which updates versions in go.mod files and pushes a new branch to GitHub:

```shell
./scripts/release.sh -t v1.0.0
TAG=v1.0.0 ./scripts/release.sh
```

2. Open a pull request and wait for the build to finish.

3. Merge the pull request and run `tag.sh` to create tags for packages:

```shell
./scripts/tag.sh -t v1.0.0
```

4. Push the tags:

```shell
git push origin --tags
TAG=v1.0.0 ./scripts/tag.sh
```
7 changes: 1 addition & 6 deletions dialect/mysqldialect/dialect.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,7 @@ func (d *Dialect) AppendTime(b []byte, tm time.Time) []byte {
}

func (d *Dialect) Append(fmter schema.Formatter, b []byte, v interface{}) []byte {
switch v := v.(type) {
case time.Time:
return appendTime(b, v)
default:
return schema.Append(fmter, b, v, customAppender)
}
return schema.Append(fmter, b, v, customAppender)
}

func (d *Dialect) Appender(typ reflect.Type) schema.AppenderFunc {
Expand Down

0 comments on commit 0033a06

Please sign in to comment.