restore composer.json, add mysqli extension
This commit is contained in:
37
database/migrations/2020_08_10_110038_create_partners_table.php
Executable file
37
database/migrations/2020_08_10_110038_create_partners_table.php
Executable file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreatePartnersTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('partners', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->jsonb('name', 100);
|
||||
$table->jsonb('description')->nullable();
|
||||
$table->string('video_url')->nullable();
|
||||
$table->string('image');
|
||||
$table->enum('status', ['published', 'new', 'soon'])->default('published');
|
||||
$table->string('is_price')->default(false);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('partners');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user