chore(migrations): return errors.ErrUnsupported in migration down queries

This commit is contained in:
Fu Diwei 2026-06-09 09:50:52 +08:00 committed by RHQYZ
parent 1cea69d1d2
commit da5223bd4e
13 changed files with 33 additions and 13 deletions

View File

@ -1390,6 +1390,6 @@ func init() {
tracer.Printf("done")
return nil
}, func(app core.App) error {
return nil
return errors.ErrUnsupported
})
}

View File

@ -1,6 +1,7 @@
package migrations
import (
"errors"
"os"
"strings"
@ -1248,6 +1249,6 @@ func init() {
return nil
}, func(app core.App) error {
return nil
return errors.ErrUnsupported
})
}

View File

@ -1,6 +1,8 @@
package migrations
import (
"errors"
"github.com/pocketbase/dbx"
"github.com/pocketbase/pocketbase/core"
m "github.com/pocketbase/pocketbase/migrations"
@ -90,6 +92,6 @@ func init() {
tracer.Printf("done")
return nil
}, func(app core.App) error {
return nil
return errors.ErrUnsupported
})
}

View File

@ -1,6 +1,8 @@
package migrations
import (
"errors"
"github.com/pocketbase/dbx"
"github.com/pocketbase/pocketbase/core"
m "github.com/pocketbase/pocketbase/migrations"
@ -196,6 +198,6 @@ func init() {
tracer.Printf("done")
return nil
}, func(app core.App) error {
return nil
return errors.ErrUnsupported
})
}

View File

@ -1,6 +1,8 @@
package migrations
import (
"errors"
"github.com/pocketbase/dbx"
"github.com/pocketbase/pocketbase/core"
m "github.com/pocketbase/pocketbase/migrations"
@ -87,6 +89,6 @@ func init() {
tracer.Printf("done")
return nil
}, func(app core.App) error {
return nil
return errors.ErrUnsupported
})
}

View File

@ -1,6 +1,8 @@
package migrations
import (
"errors"
"github.com/pocketbase/dbx"
"github.com/pocketbase/pocketbase/core"
m "github.com/pocketbase/pocketbase/migrations"
@ -188,6 +190,6 @@ func init() {
tracer.Printf("done")
return nil
}, func(app core.App) error {
return nil
return errors.ErrUnsupported
})
}

View File

@ -1,6 +1,8 @@
package migrations
import (
"errors"
"github.com/pocketbase/dbx"
"github.com/pocketbase/pocketbase/core"
m "github.com/pocketbase/pocketbase/migrations"
@ -212,6 +214,6 @@ func init() {
tracer.Printf("done")
return nil
}, func(app core.App) error {
return nil
return errors.ErrUnsupported
})
}

View File

@ -1,6 +1,7 @@
package migrations
import (
"errors"
"net"
"github.com/pocketbase/pocketbase/core"
@ -153,6 +154,6 @@ func init() {
tracer.Printf("done")
return nil
}, func(app core.App) error {
return nil
return errors.ErrUnsupported
})
}

View File

@ -1,6 +1,7 @@
package migrations
import (
"errors"
"strings"
"github.com/pocketbase/pocketbase/core"
@ -52,6 +53,6 @@ func init() {
tracer.Printf("done")
return nil
}, func(app core.App) error {
return nil
return errors.ErrUnsupported
})
}

View File

@ -1,6 +1,8 @@
package migrations
import (
"errors"
"github.com/pocketbase/pocketbase/core"
m "github.com/pocketbase/pocketbase/migrations"
@ -196,6 +198,6 @@ func init() {
tracer.Printf("done")
return nil
}, func(app core.App) error {
return nil
return errors.ErrUnsupported
})
}

View File

@ -1,6 +1,8 @@
package migrations
import (
"errors"
"github.com/pocketbase/pocketbase/core"
m "github.com/pocketbase/pocketbase/migrations"
)
@ -51,6 +53,6 @@ func init() {
tracer.Printf("done")
return nil
}, func(app core.App) error {
return nil
return errors.ErrUnsupported
})
}

View File

@ -2,6 +2,7 @@ package migrations
import (
"encoding/json"
"errors"
"strings"
"github.com/go-viper/mapstructure/v2"
@ -277,6 +278,6 @@ func init() {
tracer.Printf("done")
return nil
}, func(app core.App) error {
return nil
return errors.ErrUnsupported
})
}

View File

@ -1,6 +1,8 @@
package migrations
import (
"errors"
"github.com/pocketbase/pocketbase/core"
m "github.com/pocketbase/pocketbase/migrations"
@ -176,6 +178,6 @@ func init() {
tracer.Printf("done")
return nil
}, func(app core.App) error {
return nil
return errors.ErrUnsupported
})
}