LARAVEL - Migration
<?php
class CreateLivresTable extends Migration {
public function up()
{
Schema::create('livres', function(Blueprint $table) {
$table->increments('id');
$table->timestamps();
$table->string('titre', 100);
$table->string('auteur', 100);
$table->string('editeur', 100);
});
}
public function down()
{
Schema::drop('livres');
}
}