ctrlpanel/database/migrations/2021_05_09_153742_add_display_to_credit_products_table.php

33 lines
664 B
PHP
Raw Normal View History

2021-06-05 09:26:32 +00:00
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
2021-12-12 23:58:47 +00:00
class AddDisplayToCreditProductsTable extends Migration
2021-06-05 09:26:32 +00:00
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
2021-12-12 23:58:47 +00:00
Schema::table('credit_products', function (Blueprint $table) {
2021-06-05 09:26:32 +00:00
$table->string('display');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
2021-12-12 23:58:47 +00:00
Schema::table('credit_products', function (Blueprint $table) {
2021-06-05 09:26:32 +00:00
$table->dropColumn('display');
});
}
}