Files
c-cms-legacy/database/migrations/2019_08_17_102431_create_events_table.php
Mathieu Lagace 0166c48daa 3.2.4
2019-09-30 17:06:31 -04:00

42 lines
974 B
PHP

<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateEventsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('events', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->string('date_begin');
$table->string('date_end');
$table->string('type');
$table->string('user_id');
$table->string('location');
$table->boolean('is_mandatory');
$table->text('desc');
$table->text('msg');
$table->string('date_msg');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('events');
}
}