b445cf7003
Fixed a bug with the new payment changes Improved the payments table and changes
33 lines
671 B
PHP
33 lines
671 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
class UpdatePriceToPaymentsTable extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::table('payments', function (Blueprint $table) {
|
|
$table->decimal('price')->change();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::table('payments', function (Blueprint $table) {
|
|
$table->string('price')->change()->nullable();;
|
|
});
|
|
}
|
|
}
|