forked from kol/BlogMatch
39 lines
903 B
PHP
39 lines
903 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
class CreateReleaseManuscriptTable extends Migration {
|
|
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('ReleaseManuscript', function(Blueprint $table)
|
|
{
|
|
$table->string('ID', 50)->comment('委託編號');
|
|
$table->date('releaseDate')->comment('發稿日期');
|
|
$table->string('manuscriptUrl', 50)->nullable()->comment('稿件網址');
|
|
$table->text('suggestions', 65535)->nullable()->comment('校稿意見');
|
|
$table->dateTime('replyTime')->nullable()->comment('意見回覆時間');
|
|
$table->text('description', 65535)->nullable()->comment('交稿者說明');
|
|
$table->primary(['ID','releaseDate']);
|
|
});
|
|
}
|
|
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::drop('ReleaseManuscript');
|
|
}
|
|
|
|
}
|