This commit is contained in:
@@ -350,7 +350,6 @@ namespace AyaNova.Util
|
|||||||
cmd.CommandText = "update apurchaseorderitem set workorderitempartrequestid=null;";
|
cmd.CommandText = "update apurchaseorderitem set workorderitempartrequestid=null;";
|
||||||
await cmd.ExecuteNonQueryAsync();
|
await cmd.ExecuteNonQueryAsync();
|
||||||
|
|
||||||
//cmd.CommandText = "update aglobalbizsettings set taxpartpurchaseid=null,taxpartsaleid=null,taxratesaleid=null;";
|
|
||||||
cmd.CommandText = "update aglobalbizsettings set "
|
cmd.CommandText = "update aglobalbizsettings set "
|
||||||
+ "webaddress =null, phone1 =null, phone2 =null, emailaddress =null, postaddress =null, postcity =null, postregion =null, postcountry =null, postcode =null, "
|
+ "webaddress =null, phone1 =null, phone2 =null, emailaddress =null, postaddress =null, postcity =null, postregion =null, postcountry =null, postcode =null, "
|
||||||
+ "address =null, city =null, region =null, country =null, latitude=null, longitude =null, "
|
+ "address =null, city =null, region =null, country =null, latitude=null, longitude =null, "
|
||||||
@@ -389,6 +388,12 @@ namespace AyaNova.Util
|
|||||||
cmd.CommandText = "update aworkorderitem set fromcsrid=null;";
|
cmd.CommandText = "update aworkorderitem set fromcsrid=null;";
|
||||||
await cmd.ExecuteNonQueryAsync();
|
await cmd.ExecuteNonQueryAsync();
|
||||||
|
|
||||||
|
//aglobalopsbackupsettings just keep as is which is the safe option
|
||||||
|
|
||||||
|
cmd.CommandText = "update aglobalopsnotificationsettings set smtpdeliveryactive=false, smtpserveraddress=null,smtpaccount=null,smtppassword=null,connectionsecurity=0, smtpserverport=null,notifyfromaddress=null,ayanoavserverurl=null;";
|
||||||
|
await cmd.ExecuteNonQueryAsync();
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -513,6 +518,36 @@ namespace AyaNova.Util
|
|||||||
await EraseTableAsync("aworkorderitempriority", conn);
|
await EraseTableAsync("aworkorderitempriority", conn);
|
||||||
await EraseTableAsync("ataskgroup", conn);//items cascade
|
await EraseTableAsync("ataskgroup", conn);//items cascade
|
||||||
|
|
||||||
|
await EraseTableAsync("ametricmm", conn);
|
||||||
|
await EraseTableAsync("ametricdd", conn);
|
||||||
|
await EraseTableAsync("adashboardview", conn);
|
||||||
|
|
||||||
|
await EraseTableAsync("aopsjoblog", conn);
|
||||||
|
await EraseTableAsync("aopsjob", conn);
|
||||||
|
await EraseTableAsync("alogo", conn);
|
||||||
|
|
||||||
|
await EraseTableAsync("areport", conn);
|
||||||
|
await Biz.PrimeData.PrimeReportTemplates();
|
||||||
|
|
||||||
|
|
||||||
|
// await EraseTableAsync("XXXXX", conn);
|
||||||
|
// await EraseTableAsync("XXXXX", conn);
|
||||||
|
// await EraseTableAsync("XXXXX", conn);
|
||||||
|
// await EraseTableAsync("XXXXX", conn);
|
||||||
|
// await EraseTableAsync("XXXXX", conn);
|
||||||
|
// await EraseTableAsync("XXXXX", conn);
|
||||||
|
// await EraseTableAsync("XXXXX", conn);
|
||||||
|
// await EraseTableAsync("XXXXX", conn);
|
||||||
|
// await EraseTableAsync("XXXXX", conn);
|
||||||
|
// await EraseTableAsync("XXXXX", conn);
|
||||||
|
// await EraseTableAsync("XXXXX", conn);
|
||||||
|
// await EraseTableAsync("XXXXX", conn);
|
||||||
|
// await EraseTableAsync("XXXXX", conn);
|
||||||
|
// await EraseTableAsync("XXXXX", conn);
|
||||||
|
// await EraseTableAsync("XXXXX", conn);
|
||||||
|
// await EraseTableAsync("XXXXX", conn);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//after cleanup
|
//after cleanup
|
||||||
|
|||||||
Reference in New Issue
Block a user