www.gusucode.com > Flarum PHP论坛 中文版 v0.1 beta7源码程序 > FlarumChina-master/vendor/flagrow/upload/migrations/2016_11_11_000000_add_markdown_string.php
<?php /* * This file is part of flagrow/upload. * * Copyright (c) Flagrow. * * http://flagrow.github.io * * For the full copyright and license information, please view the license.md * file that was distributed with this source code. */ use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Builder; return [ 'up' => function (Builder $schema) { $schema->table('flagrow_files', function (Blueprint $table) { $table->string('markdown_string')->nullable(); }); }, 'down' => function (Builder $schema) { $schema->table('flagrow_files', function (Blueprint $table) { $table->dropColumn('markdown_string'); }); } ];