kuvia/database/migrations/2021_01_19_224339_image_details.php
2021-01-20 00:02:04 +01:00

34 lines
802 B
PHP

<?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);
$table->string("description")->nullable()->default(null);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}