35 lines
567 B
PHP
35 lines
567 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
class CreateDatationsTable extends Migration {
|
|
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('datations', function(Blueprint $table)
|
|
{
|
|
$table->increments('id');
|
|
$table->string('dateDebut');
|
|
$table->string('dateFin');
|
|
$table->integer('oeuvre_id');
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::drop('datations');
|
|
}
|
|
|
|
}
|