From 8bf2b8a275065cca5b66f13eae354108376467b7 Mon Sep 17 00:00:00 2001 From: sudoer777 <78781902+sudoer777@users.noreply.github.com> Date: Wed, 1 Dec 2021 11:13:37 -0700 Subject: [PATCH] Add migration to add full_name column to accounts table --- database/migrations/2_add_account_names.sql | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 database/migrations/2_add_account_names.sql diff --git a/database/migrations/2_add_account_names.sql b/database/migrations/2_add_account_names.sql new file mode 100644 index 0000000..efb1da5 --- /dev/null +++ b/database/migrations/2_add_account_names.sql @@ -0,0 +1,10 @@ +BEGIN; + +ALTER TABLE accounts.users +ADD COLUMN full_name TEXT; + +UPDATE metadata +SET value = '2' +WHERE property = "latest_migration"; + +COMMIT; \ No newline at end of file