mirror of
https://github.com/go-admin-team/go-admin.git
synced 2026-09-22 02:27:57 +00:00
Two assumptions held on the test's table and on nothing else. It dropped deleted_at while an index still referred to it. MySQL and PostgreSQL drop dependent indexes along with the column; SQLite refuses, and the migration stopped at the first table with such an index - which is all thirteen of them. It also read the rows through a column named id. sys_dept keys on dept_id, sys_user on user_id, and only some tables on id, so the pass that carries the deletion timestamps across never ran. The test's table had an id key and no index on deleted_at, which is exactly the shape that lets both through. It now matches sys_user.