You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

53 lines
1.7 KiB

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('collections', function (Blueprint $table) {
$table->id();
$table->string("name")->nullable()->unique();
$table->string("path")->nullable();
$table->boolean("public")->nullable();
$table->string("disk")->nullable();
$table->integer("count")->nullable();
$table->boolean("tmp_support")->nullable();
$table->time("remove_tmp_time")->nullable();
$table->integer("max_file_size")->nullable();
$table->integer("min_file_size")->nullable();
$table->integer("max_width")->nullable();
$table->integer("min_width")->nullable();
$table->integer("max_height")->nullable();
$table->integer("min_height")->nullable();
$table->boolean("alt_required")->nullable();
$table->boolean("description_required")->nullable();
$table->json("exts")->nullable();
$table->string("ext")->nullable();
$table->json('image_processor')->nullable();
$table->json("mimetypes")->nullable();
$table->string("model")->unique()->nullable();
$table->time("expire_date")->nullable();
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('collections');
}
};