kuvia/database/migrations/2021_01_19_224339_image_details.php

35 lines
806 B
PHP
Raw Permalink Normal View History

2021-01-19 23:02:04 +00:00
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class ImageDetails extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table("images", function (Blueprint $table) {
$table->boolean("exifRead")->default(false);
$table->dateTime("DateTimeOriginal")->nullable()->default(null);
$table->integer("rating")->default(100);
$table->string("name")->nullable()->default(null);
2021-01-20 00:01:05 +00:00
$table->mediumText("description")->nullable()->default(null);
2021-01-19 23:02:04 +00:00
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}