Commit although could not run on localhost

This commit is contained in:
Obenny
2020-10-08 14:49:49 +08:00
parent fcfe19f0fa
commit 50a69439a1
9 changed files with 273 additions and 0 deletions
@@ -0,0 +1,35 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateAnnouncementsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('announcements', function (Blueprint $table) {
$table->increments('id');
// $table->string('posted_by');
$table->timestamp('start_date')->nullable();
$table->timestamp('end_date')->nullable();
$table->longText('content');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('announcements');
}
}