___  ___    _ _    _  _ _____   _____
 / __|/ _ \  | | |  | || |_ _\ \ / / __|
| (_ | (_) | |_  _| | __ || | \ V /| _|
 \___|\___/    |_|  |_||_|___| \_/ |___|

 --- A GOPHER-LIKE INTERFACE FOR HIVE BLOCKCHAIN ---

Hostinger 무료 계정에 XE3 설치하기

BY: @comganet | CREATED: July 29, 2018, 8:04 a.m. | VOTES: 5 | PAYOUT: $0.00 | [ VOTE ]

Hostinger 무료 계정에 XE3 설치하기

[IMAGE: https://cdn.steemitimages.com/DQmeGCyGtcbfDFmQB4gdZbamSBzVio9pby3zUUEVKF22Q4X/Snap%202018-07-29%20at%2017.46.07.png]

$auth_users = array(
    'fm_admin' => 'fm_admin',
);

 * @copyright 2015 Copyright (C) NAVER Corp. 
 * @license   http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html LGPL-2.1
 * @link      https://xpressengine.io
 */

namespace Xpressengine\Migrations;

use Illuminate\Database\Schema\Blueprint;
use Schema;
use Xpressengine\Support\Migration;

class StorageMigration extends Migration {

    public function install()
    {

        Schema::create('files', function (Blueprint $table) {
            $table->engine = "MyISAM";

            $table->string('id', 36)->comment('file ID');
            $table->string('origin_id', 36)->nullable()->comment('original file ID');
            $table->string('user_id', 36)->nullable()->comment('own user ID');
            $table->string('disk', 20)->comment('storage locale.');
            $table->string('path')->comment('registered file path. without name');
            $table->string('filename')->comment('registered file name. without extension');
            $table->string('clientname')->comment('original file name');
            $table->string('mime', 50)->comment('mime type');
            $table->integer('size')->comment('file size');
            $table->integer('use_count')->default(0)->comment('use count. how much used in the system.');
            $table->integer('download_count')->default(0)->comment('download count');
            $table->timestamp('created_at')->nullable()->comment('created date');
            $table->timestamp('updated_at')->nullable()->comment('updated date');

            $table->primary('id');
            //$table->unique(['disk', 'path', 'filename'], 'findKey');
            $table->index('origin_id');
        });

        Schema::create('fileables', function (Blueprint $table) {
            $table->engine = "MyISAM";

            // mapping a file to target. If Document uploaded a file, [fileableId] is document ID.
            $table->increments('id')->comment('ID');
            $table->string('file_id', 36)->comment('file ID');
            $table->string('fileable_id', 36)->comment('target ID. If Document uploaded a file, [fileable_id] is document ID.');
            $table->timestamp('created_at')->nullable()->comment('created date');

            //$table->unique(['file_id', 'fileable_id']);
        });
    }
}
TAGS: [ #xpressengine ] [ #xpressengine3 ] [ #hostinger ] [ #kr ]

Replies

@introduce.bot | July 29, 2018, 8:34 a.m. | Votes: 0 | [ VOTE ]

✅ @comganet, I gave you an upvote on your post! Please give me a follow and I will give you a follow in return and possible future votes!Thank you in advance!

[ BACK TO TRENDING ] [ BACK TO MENU ]
CMD>