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

37 lines
823 B
PHP
Raw Permalink Normal View History

2019-09-24 14:02:39 +00:00
<?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");
});
//
}
}