kuvia/database/migrations/2021_01_20_192143_image_watermark.php

40 lines
936 B
PHP
Raw Permalink 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);
});
2021-01-20 20:43:58 +00:00
Schema::table("access", function (Blueprint $table) {
$table->unsignedBigInteger("gallery")->nullable()->change();
});
2021-01-20 20:25:29 +00:00
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}