This commit is contained in:
2022-03-09 21:08:11 +00:00
parent 06ab8f48c8
commit 44fb621e23

View File

@@ -350,7 +350,6 @@ namespace AyaNova.Util
cmd.CommandText = "update apurchaseorderitem set workorderitempartrequestid=null;";
await cmd.ExecuteNonQueryAsync();
//cmd.CommandText = "update aglobalbizsettings set taxpartpurchaseid=null,taxpartsaleid=null,taxratesaleid=null;";
cmd.CommandText = "update aglobalbizsettings set "
+ "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, "
@@ -389,6 +388,12 @@ namespace AyaNova.Util
cmd.CommandText = "update aworkorderitem set fromcsrid=null;";
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("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