Fixed #23630 -- Made AlterModelTable rename auto-created M2M tables.

should be `first_state`, not `project_state`, I suspect.