Grrr! I just accidentally(!) deleted myself from the the system when
fiddling around with the pages under /acs-admin/users/ in OpenACS
4, Postgres...
I would like to restore my account if possible and to my satisfaction I
noticed that the entries in tables such as PARTIES, PERSONS and
USERS are still intact. But the "member_state" found in
MEMBERSHIP_RELS is gone.
I tried to restore the account by inserting the user_id that was once
mine along with the member_state 'approved', without success, though.
infogettable-dev=# select * from membership_rels;
rel_id | member_state
--------+--------------
2892 | approved <-- another user. my row was deleted😟
(1 row)
infogettable-dev=# insert into membership_rels values
(2426,'approved');
NOTICE: Error occurred while executing PL/pgSQL function
membership_rels_in_tr
NOTICE: line 21 at SQL statement
ERROR: ExecAppend: Fail to add null value in not null attribute
group_id
Is there a quick fix for this, or should I register a new account?