public void ChangeColumnName() { var db = new Database(); var runner = new DatabaseMigrationRunner(db); runner.Run("AddColumn", "col1", ""); runner.Run("ChangeColumnName", "col1", "SuperCol"); Assert.That(db.PrintSchema(), Is.EqualTo("SuperCol")); }
public void RemoveColumnWorks() { var db = new Database(); var runner = new DatabaseMigrationRunner(db); runner.Run("AddColumn", "col1", ""); runner.Run("RemoveColumn", "col1", ""); Assert.That(db.PrintSchema(), Is.EqualTo("")); }