taskcafe/api/migrations/0020_add-full-name-column-to-user_account-table.up.sql
2020-06-12 17:21:58 -05:00

4 lines
186 B
SQL

ALTER TABLE user_account ADD COLUMN full_name TEXT;
UPDATE user_account SET full_name = CONCAT(first_name, ' ', last_name);
ALTER TABLE user_account ALTER COLUMN full_name SET NOT NULL;