Use schema editor to alter table in tests

Unfortunately, sqlite cannot use the SET DEFAULT statement, so the
relevant tests are skipped for it.