kuvia/database/migrations/2021_01_20_192143_image_watermark.php

36 lines
789 B
PHP
Raw Normal View History

2021-01-20 20:25:29 +00:00
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class ImageWatermark extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table("images", function (Blueprint $table) {
$table->unsignedBigInteger("gallery")->nullable()->change();
$table->enum("typ", ["gallery", "watermark"])->default("gallery");
});
Schema::table("tenants", function (Blueprint $table) {
$table->unsignedBigInteger("watermark")->nullable()->default(null);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}