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