This repository has been archived on 2021-09-15. You can view files and clone it, but cannot push or open issues or pull requests.
ModuleWeb/SRC/database/migrations/2015_03_13_094102_create_da...

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');
}
}