diff options
author | Aaron Parecki <aaron@parecki.com> | 2023-10-08 10:10:40 -0700 |
---|---|---|
committer | Aaron Parecki <aaron@parecki.com> | 2023-10-08 10:10:40 -0700 |
commit | 17c5d57fd05cb4ee5b0b189bd4cbf519fb636d41 (patch) | |
tree | a082fd06c900860c50b7921434c320dce6565f3e /schema | |
parent | 88509de125bd382832228cdd2efcf7b259dcab2b (diff) | |
parent | 1c0432939a5381ffe1453e05401ec8e3b2ba4826 (diff) |
Merge branch 'Zegnat-add-weight-posts'
Diffstat (limited to 'schema')
-rw-r--r-- | schema/migrations/0012.sql | 2 | ||||
-rw-r--r-- | schema/mysql.sql | 1 | ||||
-rw-r--r-- | schema/sqlite.sql | 3 |
3 files changed, 5 insertions, 1 deletions
diff --git a/schema/migrations/0012.sql b/schema/migrations/0012.sql new file mode 100644 index 0000000..763ea58 --- /dev/null +++ b/schema/migrations/0012.sql @@ -0,0 +1,2 @@ +ALTER TABLE users +ADD COLUMN `weight_unit` VARCHAR(255) DEFAULT 'kg'; diff --git a/schema/mysql.sql b/schema/mysql.sql index 0a0accb..d6210d9 100644 --- a/schema/mysql.sql +++ b/schema/mysql.sql @@ -25,5 +25,6 @@ CREATE TABLE `users` ( `default_timezone` varchar(255) DEFAULT NULL, `supported_post_types` longtext, `supported_visibility` longtext, + `weight_unit` varchar(255) DEFAULT 'kg', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; diff --git a/schema/sqlite.sql b/schema/sqlite.sql index dd041b3..310b2ae 100644 --- a/schema/sqlite.sql +++ b/schema/sqlite.sql @@ -24,5 +24,6 @@ CREATE TABLE users ( email_username TEXT, default_timezone TEXT, supported_post_types TEXT, - supported_visibility TEXT + supported_visibility TEXT, + weight_unit TEXT default 'kg' ); |