Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

Commit

Permalink
Remove default template from config file generated by init
Browse files Browse the repository at this point in the history
  • Loading branch information
Kate Döen committed Sep 13, 2022
1 parent ad726c9 commit 0ad4a89
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 18 deletions.
4 changes: 0 additions & 4 deletions example/dbversion/version.go

This file was deleted.

7 changes: 0 additions & 7 deletions example/trek.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,3 @@ db_name: bar
db_users:
- alice
- bob
templates:
- path: dbversion/version.go
content: |
package dbversion
// LatestVersion is the latest version for the db migrations.
const LatestVersion = {{.NewVersion}}
7 changes: 0 additions & 7 deletions internal/embed/trek.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,3 @@ model_name: {{.model_name}}
db_name: {{.db_name}}
db_users:{{range .db_users}}
- {{.}}{{end}}
templates:
- path: dbversion/version.go
content: |
package dbversion

// LatestVersion is the latest version for the db migrations.
const LatestVersion = {{`{{.NewVersion}}`}}

0 comments on commit 0ad4a89

Please sign in to comment.