mirror of
https://github.com/pocketbase/pocketbase.git
synced 2025-01-26 06:55:51 +02:00
22 lines
330 B
Go
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
|
|
})
|
|
}
|
|
`
|