to drop a table that is referenced by foreign keys I believe you need to drop those foreign key constraints, not just disable them.