mirror of
https://github.com/usual2970/certimate.git
synced 2025-07-22 02:47:59 +00:00
Add godaddy provider
This commit is contained in:
20
migrations/1726147268_update_access_usage.go
Normal file
20
migrations/1726147268_update_access_usage.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package migrations
|
||||
|
||||
import (
|
||||
"github.com/pocketbase/dbx"
|
||||
m "github.com/pocketbase/pocketbase/migrations"
|
||||
)
|
||||
|
||||
func init() {
|
||||
m.Register(func(db dbx.Builder) error {
|
||||
// add up queries...
|
||||
db.NewQuery("update access set usage='all' where configType in ('aliyun', 'tencent')").Execute()
|
||||
db.NewQuery("update access set usage='deploy' where configType in ('ssh', 'webhook','qiniu')").Execute()
|
||||
db.NewQuery("update access set usage='apply' where configType in ('cloudflare','namesilo','godaddy')").Execute()
|
||||
return nil
|
||||
}, func(db dbx.Builder) error {
|
||||
// add down queries...
|
||||
|
||||
return nil
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user