wip
This commit is contained in:
19
server/migrations/1754019877_delete_default_users.go
Normal file
19
server/migrations/1754019877_delete_default_users.go
Normal file
@@ -0,0 +1,19 @@
|
||||
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
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user