Add real name col / citizen name prop (#12)
Still need to work on allowing the column to be edited
This commit is contained in:
8
src/database/12-add-real-name.sql
Normal file
8
src/database/12-add-real-name.sql
Normal file
@@ -0,0 +1,8 @@
|
||||
ALTER TABLE jjj.citizen ALTER COLUMN display_name DROP NOT NULL;
|
||||
ALTER TABLE jjj.citizen ADD COLUMN real_name VARCHAR(255);
|
||||
|
||||
COMMENT ON COLUMN jjj.citizen.real_name
|
||||
IS 'The real name of the user';
|
||||
|
||||
-- This can be run as often as needed
|
||||
UPDATE jjj.citizen SET display_name = NULL WHERE display_name = na_user;
|
||||
Reference in New Issue
Block a user