12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- class CreateNoticeBoardsTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('notice_boards', function (Blueprint $table) {
- $table->increments('id');
- $table->tinyInteger('employee_id');
- $table->text('notice_title');
- $table->string('expire_date',255);
- $table->longText('description');
- $table->string('attached',255)->nullable();
- $table->tinyInteger('added_by')->nullable();
- $table->tinyInteger('updated_by')->nullable();
- $table->tinyInteger('status')->nullable();
- $table->tinyInteger('approved_by')->nullable();
- $table->softDeletes();
- $table->timestamps();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::drop('notice_boards');
- }
- }
|