restore composer.json, add mysqli extension
This commit is contained in:
29
database/migrations/2019_09_20_160454_create_screens_table.php
Executable file
29
database/migrations/2019_09_20_160454_create_screens_table.php
Executable file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateScreensTable extends Migration
|
||||
{
|
||||
public function up()
|
||||
{
|
||||
Schema::create('screens', function (Blueprint $table) {
|
||||
$table->bigIncrements('id');
|
||||
|
||||
$table->string('name');
|
||||
$table->string('path');
|
||||
$table->string('path_thumb')->nullable();
|
||||
$table->integer('product_id');
|
||||
$table->bigInteger('size')->default(0);
|
||||
$table->string('type')->default('image/jpeg');
|
||||
|
||||
//$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('screens');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user