Update the patch for custom tables in dyn_gw_plain