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_12_203142_create_au...

33 lines
474 B
PHP
Raw Normal View History

2015-02-12 12:56:47 +00:00
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateAuteursTable extends Migration {
2015-02-12 12:56:47 +00:00
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('auteurs', function(Blueprint $table)
2015-02-12 12:56:47 +00:00
{
$table->increments('id');
$table->string('nom');
2015-02-12 12:56:47 +00:00
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('auteurs');
2015-02-12 12:56:47 +00:00
}
}