public ChangeTable ( string name, Action |
||
name | string | |
definition | Action |
|
return | TableChangeAction |
public override void Up(SchemaAction schema) { schema.ChangeTable("t_change_table", t => { t.RemoveColumn("string1"); t.RemoveColumn("int1"); t.AddString("whatever").WithSize(1000); }); }
public override void Down(SchemaAction schema) { schema.ChangeTable("t_simple_fk_2", t => { t.RemoveColumn("auto_fk"); }); schema.RemoveTable("t_simple_fk_2"); schema.RemoveTable("t_simple_fk_1"); }
public override void Up(SchemaAction schema) { schema.AddTable("t_change_column", t => { t.AddString("string1").WithSize(123); t.AddInt32("int1"); }); schema.ChangeTable("t_change_column", t => { t.ChangeString("string1").WithSize(42); }); }