20 lines
361 B
Go
20 lines
361 B
Go
package migrations
|
|
|
|
import (
|
|
"github.com/pocketbase/pocketbase/core"
|
|
m "github.com/pocketbase/pocketbase/migrations"
|
|
)
|
|
|
|
func init() {
|
|
m.Register(func(app core.App) error {
|
|
collection, err := app.FindCollectionByNameOrId("users")
|
|
if err != nil {
|
|
return err
|
|
}
|
|
return app.Delete(collection)
|
|
}, func(_ core.App) error {
|
|
// eh...
|
|
return nil
|
|
})
|
|
}
|