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() + { + // + } +}