tethys/database/migrations/2015_06_09_041219_create_periodes_table.php

33 lines
466 B
PHP
Raw Normal View History

2015-07-19 06:49:24 +00:00
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreatePeriodesTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('periodes', function(Blueprint $table)
{
$table->integer('days');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('periodes');
}
}