bug erasing db

This commit is contained in:
2022-08-27 19:57:37 +00:00
parent 577ff10dac
commit 55c3c373f7
2 changed files with 32 additions and 2 deletions

View File

@@ -30,6 +30,29 @@ THINGS HOLDING UP PERPETUAL RELEASE
WIP >>>>>>>>>>>>>
bugbug: migrate errorduring initial erase : subscription
xception has occurred: CLR/Npgsql.PostgresException
Exception thrown: 'Npgsql.PostgresException' in System.Private.CoreLib.dll: '23503: update or delete on table "apm" violates foreign key constraint "aworkorder_frompmid_fkey" on table "aworkorder"
DETAIL: Detail redacted as it may contain sensitive data. Specify 'Include Error Detail' in the connection string to include this information.'
at Npgsql.Internal.NpgsqlConnector.<<ReadMessage>g__ReadMessageLong|211_0>d.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Npgsql.NpgsqlDataReader.<NextResult>d__47.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Npgsql.NpgsqlCommand.<ExecuteReader>d__116.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Npgsql.NpgsqlCommand.<ExecuteReader>d__116.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNot
todo: move next release of v7 to downloads and update web page, reword to say it ensures there are no bare line feeds in messages to be on the safe side or something to that effect
TESTING NEXT UP V8MIGRATE....
@@ -37,7 +60,7 @@ todo: TEST subscription and perpetual license code
Does a trial request for sbuscription work? YES
Correct date range? YES
Generate data? YES
v8migrate work?
v8migrate work? YES?
Does a trial request for perpetual work? YES
correct date range? YES
Generate data? YES

View File

@@ -380,9 +380,16 @@ namespace AyaNova.Util
cmd.CommandText = "update aloanunit set unitid=null, workorderitemloanid=null;";
await cmd.ExecuteNonQueryAsync();
cmd.CommandText = "update aworkorder set fromquoteid=null;";
await cmd.ExecuteNonQueryAsync();
cmd.CommandText = "update aworkorder set frompmid=null;";
await cmd.ExecuteNonQueryAsync();
cmd.CommandText = "update apurchaseorderitem set workorderitempartrequestid=null;";
await cmd.ExecuteNonQueryAsync();
cmd.CommandText = "update aworkorderitem set fromcsrid=null;";
await cmd.ExecuteNonQueryAsync();
@@ -482,7 +489,7 @@ namespace AyaNova.Util
await EraseTableAsync("apmitemunit", conn);
await EraseTableAsync("apmitemoutsideservice", conn);
await EraseTableAsync("apmitem", conn);
await EraseTableAsync("apm", conn);
await EraseTableAsync("apm", conn);//bugbug
//---
await EraseTableAsync("afileattachment", conn);