x-ui/database/migrations/v006_settings.go
Alireza Ahmadi c0fb611fa0
Some checks are pending
Release X-UI / build (386) (push) Waiting to run
Release X-UI / build (amd64) (push) Waiting to run
Release X-UI / build (arm64) (push) Waiting to run
Release X-UI / build (armv5) (push) Waiting to run
Release X-UI / build (armv6) (push) Waiting to run
Release X-UI / build (armv7) (push) Waiting to run
Release X-UI / build (s390x) (push) Waiting to run
Release X-UI / Build for Windows (push) Waiting to run
migration for sub
2026-06-21 15:22:30 +02:00

14 lines
283 B
Go

package migrations
import (
"github.com/alireza0/x-ui/logger"
"gorm.io/gorm"
)
func migrateV006Settings(db *gorm.DB) error {
db.Exec(`DELETE FROM settings WHERE key IN ('subJsonNoise','subJsonNoises', 'subJsonFragment')`)
logger.Info("Migrated settings to v6")
return nil
}