adjust code to new repository
This commit is contained in:
committed by
T. R. Bernstein
parent
0cf34c475b
commit
795cd8335f
@@ -10,7 +10,7 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/pocketbase/dbx"
|
||||
"github.com/pocketbase/pocketbase/core"
|
||||
"github.com/tabshift-gh/pocketbase/core"
|
||||
)
|
||||
|
||||
// automigrateOnCollectionChange handles the automigration snapshot
|
||||
|
||||
@@ -23,9 +23,9 @@ import (
|
||||
"path/filepath"
|
||||
"time"
|
||||
|
||||
"github.com/pocketbase/pocketbase/core"
|
||||
"github.com/pocketbase/pocketbase/tools/inflector"
|
||||
"github.com/pocketbase/pocketbase/tools/osutils"
|
||||
"github.com/tabshift-gh/pocketbase/core"
|
||||
"github.com/tabshift-gh/pocketbase/tools/inflector"
|
||||
"github.com/tabshift-gh/pocketbase/tools/osutils"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
|
||||
@@ -7,11 +7,11 @@ import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/pocketbase/pocketbase/core"
|
||||
"github.com/pocketbase/pocketbase/plugins/migratecmd"
|
||||
"github.com/pocketbase/pocketbase/tests"
|
||||
"github.com/pocketbase/pocketbase/tools/list"
|
||||
"github.com/pocketbase/pocketbase/tools/types"
|
||||
"github.com/tabshift-gh/pocketbase/core"
|
||||
"github.com/tabshift-gh/pocketbase/plugins/migratecmd"
|
||||
"github.com/tabshift-gh/pocketbase/tests"
|
||||
"github.com/tabshift-gh/pocketbase/tools/list"
|
||||
"github.com/tabshift-gh/pocketbase/tools/types"
|
||||
)
|
||||
|
||||
func TestAutomigrateCollectionCreate(t *testing.T) {
|
||||
@@ -202,8 +202,8 @@ package _test_migrations
|
||||
import (
|
||||
"encoding/json"
|
||||
|
||||
"github.com/pocketbase/pocketbase/core"
|
||||
m "github.com/pocketbase/pocketbase/migrations"
|
||||
"github.com/tabshift-gh/pocketbase/core"
|
||||
m "github.com/tabshift-gh/pocketbase/migrations"
|
||||
)
|
||||
|
||||
func init() {
|
||||
@@ -651,8 +651,8 @@ package _test_migrations
|
||||
import (
|
||||
"encoding/json"
|
||||
|
||||
"github.com/pocketbase/pocketbase/core"
|
||||
m "github.com/pocketbase/pocketbase/migrations"
|
||||
"github.com/tabshift-gh/pocketbase/core"
|
||||
m "github.com/tabshift-gh/pocketbase/migrations"
|
||||
)
|
||||
|
||||
func init() {
|
||||
@@ -1043,8 +1043,8 @@ package _test_migrations
|
||||
import (
|
||||
"encoding/json"
|
||||
|
||||
"github.com/pocketbase/pocketbase/core"
|
||||
m "github.com/pocketbase/pocketbase/migrations"
|
||||
"github.com/tabshift-gh/pocketbase/core"
|
||||
m "github.com/tabshift-gh/pocketbase/migrations"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/pocketbase/pocketbase/core"
|
||||
"github.com/tabshift-gh/pocketbase/core"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -302,8 +302,8 @@ func (p *plugin) goBlankTemplate() (string, error) {
|
||||
const template = `package %s
|
||||
|
||||
import (
|
||||
"github.com/pocketbase/pocketbase/core"
|
||||
m "github.com/pocketbase/pocketbase/migrations"
|
||||
"github.com/tabshift-gh/pocketbase/core"
|
||||
m "github.com/tabshift-gh/pocketbase/migrations"
|
||||
)
|
||||
|
||||
func init() {
|
||||
@@ -344,8 +344,8 @@ func (p *plugin) goSnapshotTemplate(collections []*core.Collection) (string, err
|
||||
const template = `package %s
|
||||
|
||||
import (
|
||||
"github.com/pocketbase/pocketbase/core"
|
||||
m "github.com/pocketbase/pocketbase/migrations"
|
||||
"github.com/tabshift-gh/pocketbase/core"
|
||||
m "github.com/tabshift-gh/pocketbase/migrations"
|
||||
)
|
||||
|
||||
func init() {
|
||||
@@ -385,8 +385,8 @@ func (p *plugin) goCreateTemplate(collection *core.Collection) (string, error) {
|
||||
import (
|
||||
"encoding/json"
|
||||
|
||||
"github.com/pocketbase/pocketbase/core"
|
||||
m "github.com/pocketbase/pocketbase/migrations"
|
||||
"github.com/tabshift-gh/pocketbase/core"
|
||||
m "github.com/tabshift-gh/pocketbase/migrations"
|
||||
)
|
||||
|
||||
func init() {
|
||||
@@ -438,8 +438,8 @@ func (p *plugin) goDeleteTemplate(collection *core.Collection) (string, error) {
|
||||
import (
|
||||
"encoding/json"
|
||||
|
||||
"github.com/pocketbase/pocketbase/core"
|
||||
m "github.com/pocketbase/pocketbase/migrations"
|
||||
"github.com/tabshift-gh/pocketbase/core"
|
||||
m "github.com/tabshift-gh/pocketbase/migrations"
|
||||
)
|
||||
|
||||
func init() {
|
||||
@@ -624,8 +624,8 @@ func (p *plugin) goDiffTemplate(new *core.Collection, old *core.Collection) (str
|
||||
imports += "\n\t\"encoding/json\"\n"
|
||||
}
|
||||
|
||||
imports += "\n\t\"github.com/pocketbase/pocketbase/core\""
|
||||
imports += "\n\tm \"github.com/pocketbase/pocketbase/migrations\""
|
||||
imports += "\n\t\"github.com/tabshift-gh/pocketbase/core\""
|
||||
imports += "\n\tm \"github.com/tabshift-gh/pocketbase/migrations\""
|
||||
// ---
|
||||
|
||||
const template = `package %s
|
||||
|
||||
Reference in New Issue
Block a user