| 1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- use Illuminate\Database\Migrations\Migration;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Support\Facades\Schema;
- class AddCustomerPhoneAddress extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::table('customers', function (Blueprint $table) {
- $table->string('invoice_address')->nullable()->comment('发票地址');
- $table->string('contact_man')->index()->nullable()->comment('联系人');
- $table->string('phone')->nullable()->comment('联系电话');
- $table->string('remark')->nullable()->comment('公司备注');
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::table('customers',function (Blueprint $table){
- $table->dropColumn('invoice_address');
- $table->dropColumn('contact_man');
- $table->dropColumn('phone');
- $table->dropColumn('remark');
- });
- }
- }
|