From 33a35ec7f5d6cf53db3bd71d825ebe0a335b19ec Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 1 Jun 2016 15:44:37 -0700 Subject: [PATCH] Migration for for email/username format settings --- ...dd_email_domain_and_format_to_settings.php | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 database/migrations/2016_06_01_140218_add_email_domain_and_format_to_settings.php diff --git a/database/migrations/2016_06_01_140218_add_email_domain_and_format_to_settings.php b/database/migrations/2016_06_01_140218_add_email_domain_and_format_to_settings.php new file mode 100644 index 0000000000..a2b29e9b60 --- /dev/null +++ b/database/migrations/2016_06_01_140218_add_email_domain_and_format_to_settings.php @@ -0,0 +1,37 @@ +string('email_domain')->nullable()->default(NULL); + $table->string('email_format')->nullable()->default('filastname'); + $table->string('username_format')->nullable()->default('filastname'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('settings', function ($table) { + $table->dropColumn( + 'email_domain', + 'email_format', + 'username_format' + ); + }); + } +}