mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-06 07:36:37 +08:00
refactor(migrator): use goose SQL only and auto-import zones on upgrade
移除 Go goose 迁移(bridge/legacy data/zone import),改为 goose SQL 占位 与结构迁移脚本;启动时 Migrate 在删旧列前自动导入历史域名,去掉 migrate-zones 手动命令及文档中的人工导入步骤。
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
-- +goose Up
|
||||
-- Historical Wavelet→OpenFlare table rename bridge (formerly Go migration).
|
||||
-- Fresh installs and current of_* schemas need no action.
|
||||
SELECT 1;
|
||||
|
||||
-- +goose Down
|
||||
SELECT 1;
|
||||
@@ -0,0 +1,7 @@
|
||||
-- +goose Up
|
||||
-- Historical copy from legacy_* tables into of_* / w_* (formerly Go migration).
|
||||
-- Already-applied environments keep their data; new installs have no legacy_* sources.
|
||||
SELECT 1;
|
||||
|
||||
-- +goose Down
|
||||
SELECT 1;
|
||||
@@ -0,0 +1,8 @@
|
||||
-- +goose Up
|
||||
-- Marker: Zone 域名从旧路由列 / of_managed_domains 的导入由 migrator.Migrate()
|
||||
-- 在全部 goose SQL 应用后自动执行(publicsuffix 根域解析无法用纯 SQL 正确完成)。
|
||||
-- 本文件仅占位版本号,保证升级链路有序:建表 → 导入 → 删旧列。
|
||||
SELECT 1;
|
||||
|
||||
-- +goose Down
|
||||
SELECT 1;
|
||||
Reference in New Issue
Block a user