tethys/database/migrations/2015_06_09_041219_create_periodes_table.php

34 lines
495 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)
{
2018-08-06 12:30:51 +00:00
$table->increments('id');
2015-07-19 06:49:24 +00:00
$table->integer('days');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('periodes');
}
}