feat: 修复 AI 风险语义并隔离 Mock 数据
This commit is contained in:
@@ -8,12 +8,12 @@ import (
|
||||
"github.com/golang-migrate/migrate/v4"
|
||||
"github.com/golang-migrate/migrate/v4/database/postgres"
|
||||
"github.com/golang-migrate/migrate/v4/source/iofs"
|
||||
"silk-server-go/migrations"
|
||||
"gorm.io/gorm"
|
||||
"silk-server-go/migrations"
|
||||
)
|
||||
|
||||
// CurrentSchemaVersion 是当前后端代码期望的迁移版本。
|
||||
const CurrentSchemaVersion = "1"
|
||||
const CurrentSchemaVersion = "2"
|
||||
|
||||
// RunMigrations 使用嵌入式 SQL 迁移文件将数据库升级到最新版本。
|
||||
func RunMigrations(db *gorm.DB) error {
|
||||
|
||||
Reference in New Issue
Block a user