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

46 lines
976 B
PHP
Executable File

<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateReferentsTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('referents', function(Blueprint $table)
{
$table->increments('id');
$table->string('email');
$table->string('motdepasse');
$table->string('nom');
$table->string('prenom');
$table->string('etablissement');
$table->string('image');
$table->string('remember_token',100)->nullable();
$table->timestamps();
});
Schema::create('password_resets', function(Blueprint $table)
{
$table->string('email');
$table->string('token');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('referents');
}
}