From e1471248fe8f8a4fc6edef28fe702245c2fde48d Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Thu, 26 Dec 2019 19:07:51 +0100 Subject: User: Add pronoun statement --- ...000000_user_personal_data_add_pronoun_field.php | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 db/migrations/2019_12_03_000000_user_personal_data_add_pronoun_field.php (limited to 'db') diff --git a/db/migrations/2019_12_03_000000_user_personal_data_add_pronoun_field.php b/db/migrations/2019_12_03_000000_user_personal_data_add_pronoun_field.php new file mode 100644 index 00000000..3109c888 --- /dev/null +++ b/db/migrations/2019_12_03_000000_user_personal_data_add_pronoun_field.php @@ -0,0 +1,34 @@ +schema->table('users_personal_data', function (Blueprint $table) { + $table->string('pronoun', 15) + ->nullable() + ->default(null) + ->after('last_name'); + }); + } + + /** + * Reverse the migration + */ + public function down(): void + { + $this->schema->table('users_personal_data', function (Blueprint $table) { + $table->dropColumn('pronoun'); + }); + } +} -- cgit v1.2.3-54-g00ecf