public void AlterSchemaRenameTo() { var statement = Sql.AlterSchema(Sql.Name("CM")).RenameTo("CM1"); var command = Provider.GetCommand(statement); Assert.NotNull(command); Assert.Equal("ALTER SCHEMA \"CM\" RENAME TO \"CM1\";", command.CommandText); }
public void AlterSchemaOwnerToName() { var statement = Sql.AlterSchema(Sql.Name("CM")).OwnerTo(Sql.Name("admin")); var command = Provider.GetCommand(statement); Assert.NotNull(command); Assert.Equal("ALTER SCHEMA \"CM\" OWNER TO \"admin\";", command.CommandText); }