Abdulrehman-PIAIC80387 commented on issue #38629: URL: https://github.com/apache/superset/issues/38629#issuecomment-4955818512
Picking this up. Confirmed on PostgreSQL 6.1.0 too, not just MariaDB. Fix approach: add `ON DELETE SET NULL` on audit FKs (`created_by_fk`, `changed_by_fk`, `logs.user_id`, etc.) and `ON DELETE CASCADE` on ownership FKs (`favstar`, `user_attribute`, `tab_state`) — at both the model layer and via an Alembic migration. Same pattern as `6d05b0a70c89` (2023) and `32bf93dfe2a4` (2025). Verified end-to-end on Postgres. Regression test included. PR incoming. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
