Skip to content

Commit

Permalink
Add version 2 example for how to rename tables (#3051)
Browse files Browse the repository at this point in the history
Co-authored-by: Kevin Snyder <[email protected]>
  • Loading branch information
KevinSnyderCodes and Kevin Snyder authored Dec 11, 2023
1 parent 4fd678f commit 33cfa2f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/howto/rename.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,18 @@ rename:
author: Writer
```

```yaml
version: "2"
sql:
- engine: postgresql
queries: query.sql
schema: query.sql
overrides:
go:
rename:
author: Writer
```

```go
package db
Expand Down

0 comments on commit 33cfa2f

Please sign in to comment.