Open
Description
When I have generate migration from old db the migration is created successfully but the probem is it is convert enum value as string see below -
integer('id', true); $table->string('order_code'); $table->integer('user_id'); #Check status field not coming with enum values $table->string('status')->default('PENDING'); $table->string('cancelled_by'); $table->string('cancel_reason')->nullable(); $table->string('payment_mode'); $table->decimal('sub_total')->default(0.00); $table->decimal('tax')->default(0.00); $table->decimal('delivery_charge')->default(0.00); $table->decimal('discount_amt')->default(0.00); $table->decimal('total_amount', 10)->default(0.00); $table->decimal('merchant_pay', 10)->default(0.00); $table->decimal('comission', 10)->default(0.00)->comment('bikemango comission'); $table->string('payment_status')->default('PENDING'); $table->string('payment_id')->nullable(); $table->integer('discount_id')->default(0); $table->text('delivery_note', 65535)->nullable(); $table->text('order_title', 65535)->nullable(); $table->dateTime('schedule_at')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::drop('fdl_orders'); } }Metadata
Metadata
Assignees
Labels
No labels