[MigrationsTheory] // TODO: Can't handle this yet (table rebuild)
public void Can_change_column_to_identity_column_when_no_data_present()
{
ResetDatabase();
var migrator = CreateMigrator<ShopContext_v1>();
migrator.Update();
migrator = CreateMigrator<ShopContext_v1>(new AlterColumnWithIdentityMigration());
migrator.Update();
// TODO: Assert column is identity
}
// TODO: integer-float conversions
public abstract class AutoAndGenerateScenarios_AlterColumnType<TContextV1, TContextV2>
All tests in CreateIndexScenarios and DropIndexScenarios need verification. Example:
[MigrationsTheory]
public void Can_create_simple_index()
{
ResetDatabase();
var migrator = CreateMigrator<ShopContext_v1>();
migrator.Update();
migrator = CreateMigrator<ShopContext_v1>(new CreateSimpleIndexMigration());
migrator.Update();
// TODO: Verify
}
public void Can_change_column_to_identity_column_when_no_data_present()
{
ResetDatabase();
var migrator = CreateMigrator<ShopContext_v1>();
migrator.Update();
migrator = CreateMigrator<ShopContext_v1>(new AlterColumnWithIdentityMigration());
migrator.Update();
// TODO: Assert column is identity
}
// TODO: integer-float conversions
public abstract class AutoAndGenerateScenarios_AlterColumnType<TContextV1, TContextV2>
All tests in CreateIndexScenarios and DropIndexScenarios need verification. Example:
[MigrationsTheory]
public void Can_create_simple_index()
{
ResetDatabase();
var migrator = CreateMigrator<ShopContext_v1>();
migrator.Update();
migrator = CreateMigrator<ShopContext_v1>(new CreateSimpleIndexMigration());
migrator.Update();
// TODO: Verify
}