作者 tangxvhui

sql 更新

... ... @@ -2,8 +2,6 @@ package routers
import (
"github.com/beego/beego/v2/server/web"
"github.com/beego/beego/v2/server/web/context"
"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/infrastructure/redis"
"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/port/beego/controllers"
)
... ... @@ -11,8 +9,8 @@ func init() {
//日志输出
web.Router("/log", &controllers.LoggerController{}, "Get:Output")
//
web.Get("/test1", func(ctx *context.Context) {
s := redis.RunDemoScript()
ctx.WriteString(s)
})
// web.Get("/test1", func(ctx *context.Context) {
// s := redis.RunDemoScript()
// ctx.WriteString(s)
// })
}
... ...
... ... @@ -91,10 +91,11 @@ SET
summary_state = 1
WHERE
end_time <= now()
AND deleted_at ISNULL
-- 变更user表字段
ALTER TABLE "public"."user"
ADD COLUMN "parent_id" int8 DEFAULT 0;
AND deleted_at ISNULL;
-- 变更user表字段
ALTER TABLE "public"."user"
ADD COLUMN "parent_id" int8 DEFAULT 0;
COMMENT ON COLUMN "public"."user"."parent_id" IS '上级ID';
... ...