Bug: CLI group creation does not auto-increment ID #2
Labels
Complexity: LOW
This issue is trivial and is expected to take less than an hour to complete.
Module: API
This issue pertains to the apps/api module
Priority: MED
This issue isn't critical or security-related but is holding back other issues or efficiency.
Type: Bug
Something isn't working
In the CLI, the ID is manually set when creating groups, which causes PostgreSQL to not increment the auto-increment value for the ID column. When a user tries to insert another group, it will always fail, since the auto-increment value is still set to
1
however a group with ID1
already exists ("Guest").There are two possible solutions to this:
Technically, the ID of the groups shouldn't matter, but in my opinion, we should assert that the default groups are IDs 1-3 just in case.
The text was updated successfully, but these errors were encountered: