1 | <?php |
||
11 | class CreateUsersTable extends Migration |
||
12 | { |
||
13 | /** |
||
14 | * Run the migrations. |
||
15 | * |
||
16 | * @return void |
||
17 | */ |
||
18 | public function up() |
||
19 | { |
||
20 | Schema::create('cas_users', function (Blueprint $table) { |
||
21 | $table->increments('id'); |
||
22 | $table->string('name')->unique(); |
||
23 | $table->string('real_name'); |
||
24 | $table->timestamps(); |
||
25 | }); |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * Reverse the migrations. |
||
30 | * |
||
31 | * @return void |
||
32 | */ |
||
33 | public function down() |
||
34 | { |
||
35 | Schema::drop('cas_users'); |
||
36 | } |
||
37 | } |
||
38 |