diff --git a/devdocs/todo.txt b/devdocs/todo.txt index 0df74032..6ccc56a1 100644 --- a/devdocs/todo.txt +++ b/devdocs/todo.txt @@ -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.<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.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.d__116.MoveNext() + at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + at Npgsql.NpgsqlCommand.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 diff --git a/server/AyaNova/util/DbUtil.cs b/server/AyaNova/util/DbUtil.cs index b947af7e..4dfce658 100644 --- a/server/AyaNova/util/DbUtil.cs +++ b/server/AyaNova/util/DbUtil.cs @@ -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);