public void can_migrate_missing_duplicated_fields() { writeTable(); theMapping.Duplicate(x => x.FirstName); var newTable = new DocumentTable(theMapping); writeAndApplyPatch(AutoCreate.CreateOrUpdate, newTable); var theActual = theTable.FetchExisting(_conn); theActual.HasColumn("first_name"); }
public void detect_that_the_function_has_changed() { writeFunction(); theMapping.Duplicate(x => x.FirstName); writeTable(); var function = new UpsertFunction(theMapping); var delta = function.FetchDelta(_conn, new DdlRules()); delta.AllNew.ShouldBeFalse(); delta.HasChanged.ShouldBeTrue(); }
public static void ConfigureMarten(DocumentMapping <ConfiguresItselfSpecifically> mapping) { mapping.Duplicate(x => x.Name); }