1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2025-01-26 06:55:51 +02:00
pocketbase/tools/migrate/template.go
2022-07-07 00:19:05 +03:00

22 lines
330 B
Go

package migrate
const createTemplateContent = `package migrations
import (
"github.com/pocketbase/dbx"
m "github.com/pocketbase/pocketbase/migrations"
)
func init() {
m.Register(func(db dbx.Builder) error {
// add up queries...
return nil
}, func(db dbx.Builder) error {
// add down queries...
return nil
})
}
`