From 711dd3a3fcd7ba281853c19026e41ad26e6453c8 Mon Sep 17 00:00:00 2001 From: Farid Saravi Date: Thu, 5 Dec 2019 06:22:40 +0330 Subject: [PATCH] add temp migration --- ...180355_add_first_name_last_name_column.php | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 database/migrations/2019_12_04_180355_add_first_name_last_name_column.php diff --git a/database/migrations/2019_12_04_180355_add_first_name_last_name_column.php b/database/migrations/2019_12_04_180355_add_first_name_last_name_column.php new file mode 100644 index 0000000..ba439e0 --- /dev/null +++ b/database/migrations/2019_12_04_180355_add_first_name_last_name_column.php @@ -0,0 +1,38 @@ +string('first_name', 255)->nullable()->after('name'); + $table->string('last_name', 255)->nullable()->after('first_name'); + }); + + $dbName = config("crm.db_name"); + Schema::table($dbName . ".clients", function (Blueprint $table) { + $table->string('first_name', 255)->nullable()->after('name'); + $table->string('last_name', 255)->nullable()->after('first_name'); + $table->string('file_code', 255)->nullable()->after('last_name'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + // + } +}