This repository has been archived on 2024-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
keksAccount/database/migrations/2019_09_24_132403_app_icon_url.php
2019-09-24 16:02:39 +02:00

36 lines
823 B
PHP

<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AppIconUrl extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('apps', function (Blueprint $table) {
$table->removeColumn("icon");
$table->string("iconURL", 500)->nullable()->comment("Public link to icon");
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('apps', function (Blueprint $table) {
$table->binary("icon")->nullable()->default(null)->comment("200x200 Image as Icon");
$table->removeColumn("iconURL");
});
//
}
}