mirror of
https://git-old.hatthieves.es/g/g.git
synced 2026-06-27 03:55:58 +00:00
25 lines
447 B
PHP
25 lines
447 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Capsule\Manager as Capsule;
|
|
|
|
/**
|
|
* User Migrate
|
|
*/
|
|
|
|
class UserMigration {
|
|
function run()
|
|
{
|
|
Capsule::schema()->dropIfExists('users');
|
|
|
|
Capsule::schema()->create('users', function($table) {
|
|
$table->increments('id');
|
|
$table->string('email')->unique();
|
|
$table->string('password');
|
|
$table->boolean('isAdmin');
|
|
$table->string('img');
|
|
$table->string('social');
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
}
|