Closed smurthys closed 7 years ago
This code is implemented in initializeDB.sql
in #94.
I believe it is helpful to make the code segment shown a helper function such as assertClassDBRolesDefined
and then call it (PERFORM?) wherever that assertion is required.
Of course, the assertion function cannot be used in initializeDB.sql
, because helper functions won't yet be created.
I do not believe the original code this issue is about is now only in initializeDB.sql
in its correct form. Am I correct? If you happen to verify this is true, please also close this issue.
Yes, I believe you are correct.
In
prepareClassDB.sql
, the test for existence of all ClassDB roles succeeds even if just one of the roles is defined.This issue should be addressed after PRs #90 and #92 are merged. Here is the required code: