mirror of
https://github.com/fankes/beszel.git
synced 2025-10-18 17:29:28 +08:00
update migrations / gitignore
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -7,4 +7,6 @@ beszel-agent
|
||||
beszel_data
|
||||
beszel_data*
|
||||
dist
|
||||
*.exe
|
||||
*.exe
|
||||
beszel/cmd/hub/hub
|
||||
beszel/cmd/agent/agent
|
||||
|
@@ -4,6 +4,7 @@ import (
|
||||
"beszel"
|
||||
"beszel/internal/hub"
|
||||
"beszel/internal/update"
|
||||
_ "beszel/migrations"
|
||||
|
||||
"github.com/pocketbase/pocketbase"
|
||||
"github.com/spf13/cobra"
|
||||
|
@@ -57,6 +57,7 @@ func (h *Hub) Run() {
|
||||
migratecmd.MustRegister(h.app, h.app.RootCmd, migratecmd.Config{
|
||||
// (the isGoRun check is to enable it only during development)
|
||||
Automigrate: isGoRun,
|
||||
Dir: "../../migrations",
|
||||
})
|
||||
|
||||
// set auth settings
|
||||
|
@@ -1,4 +1,4 @@
|
||||
package main
|
||||
package migrations
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
@@ -1,4 +1,4 @@
|
||||
package main
|
||||
package migrations
|
||||
|
||||
import (
|
||||
"github.com/pocketbase/dbx"
|
||||
|
Reference in New Issue
Block a user