3x-ui/database
MHSanaei 14e2d4954a
fix(migrate-db): drop legacy client_traffics FK before Postgres copy (#4882)
AutoMigrate re-creates the client_traffics -> inbounds foreign key, but
the running panel drops it and tolerates client_traffics rows whose
inbound was deleted. Migrating a DB with such orphaned rows failed with
an fk_inbounds_client_stats violation. Drop the constraint on the
destination right after AutoMigrate so the copy matches runtime behavior.
2026-06-04 16:57:09 +02:00
..
model fix(api-token): hash tokens at rest and show plaintext only once 2026-06-03 22:57:50 +02:00
db.go fix(api-token): hash tokens at rest and show plaintext only once 2026-06-03 22:57:50 +02:00
db_seed_test.go feat(inbounds): support Unix domain socket path in Listen field (#4429) 2026-06-02 00:37:20 +02:00
dialect.go fix(nodes): use GREATEST for last_online merge on PostgreSQL 2026-05-29 02:04:02 +02:00
dump_sqlite.go feat(migrate-db): SQLite <-> .dump conversion and Download Migration in Overview 2026-06-04 15:32:22 +02:00
dump_sqlite_test.go feat(migrate-db): SQLite <-> .dump conversion and Download Migration in Overview 2026-06-04 15:32:22 +02:00
migrate_data.go fix(migrate-db): drop legacy client_traffics FK before Postgres copy (#4882) 2026-06-04 16:57:09 +02:00
migrate_data_test.go fix(migrate-db): preserve false-valued columns in SQLite to Postgres copy 2026-06-03 14:28:14 +02:00