Fixed #22653 -- Added some database feature flags to tests.

Thanks Rahul Priyadarshi.
Fixed #22487: Separated schema migration from data migration in test

The data migration failed on Oracle, killing the entire test suite.

Thanks timo for reporting the Oracle breakage,
and andrewgodwin for suggesting the solution.