public override void Run(IAlterProcessor proc, DbDiffOptions opts) { var newtbl = new TableStructure(ParentTable); var dbs = new DatabaseStructure(); dbs.Tables.Add(newtbl); foreach (var op in AlterTableOps) { op.Run(dbs, opts); } proc.RecreateTable(ParentTable, newtbl); opts.AlterLogger.Info(Texts.Get("s_recreated$table", "table", ParentTable.FullName)); }
public override void Run(IAlterProcessor proc, DbDiffOptions opts) { var newtbl = ParentTable.CloneTable(); var dbs = new DatabaseInfo(); dbs.Tables.Add(newtbl); foreach (var op in AlterTableOps) { op.Run(new DatabaseInfoAlterProcessor(dbs), opts); } proc.RecreateTable(ParentTable, newtbl); opts.AlterLogger.Info(String.Format("Recreated table {0}", ParentTable.FullName)); }
public override void Run(IAlterProcessor proc, DbDiffOptions opts) { var newtbl = ParentTable.CloneTable(); var dbs = new DatabaseInfo(); dbs.Tables.Add(newtbl); foreach (var op in AlterTableOps) { op.Run(new DatabaseInfoAlterProcessor(dbs), opts); } proc.RecreateTable(ParentTable, newtbl); opts.AlterLogger.Info(String.Format("Recreated table {0}", ParentTable.FullName)); }