public virtual IEnumerable<string> Run(DropForeignKeyCommand command)
        {
            var builder = new StringBuilder();

            builder.Append("alter table ")
                .Append(_dialect.QuoteForTableName(command.SrcTable))
                .Append(_dialect.GetDropForeignKeyConstraintString(command.Name));
            yield return builder.ToString();
        }
 public override IEnumerable<string> Run(DropForeignKeyCommand command)
 {
     yield break;
 }
Beispiel #3
0
 public SchemaBuilder DropForeignKey(string srcTable, string name)
 {
     var command = new DropForeignKeyCommand(FormatTable(srcTable), name);
     Execute(_builder.CreateSql(command));
     return this;
 }