[1.7.x] Fixed #23102 -- Documented that sql* commands now respect allow_migrate().

Backport of 0af593dbe5 from master
[1.7.x] Fixed #22491 -- documented how select_for_update() should be tested.

Thanks Andreas Pelme for the report.

Backport of 668d432d0a from master
[1.7.x] Fixed #23100: Individual FK creation missing dependencies
[1.7.x] Fixed #23121: AlterModelOptions operation not changing state right