Ejemplo n.º 1
0
        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"));
        }
Ejemplo n.º 2
0
        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(""));
        }