Completed
Push — master ( 5719be...76a8bf )
by Song
02:28
created
migrations/2016_01_04_173148_create_admin_tables.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
      */
13 13
     public function up()
14 14
     {
15
-        Schema::create(config('admin.database.users_table'), function (Blueprint $table) {
15
+        Schema::create(config('admin.database.users_table'), function(Blueprint $table) {
16 16
             $table->increments('id');
17 17
             $table->string('username', 190)->unique();
18 18
             $table->string('password', 60);
@@ -21,21 +21,21 @@  discard block
 block discarded – undo
21 21
             $table->timestamps();
22 22
         });
23 23
 
24
-        Schema::create(config('admin.database.roles_table'), function (Blueprint $table) {
24
+        Schema::create(config('admin.database.roles_table'), function(Blueprint $table) {
25 25
             $table->increments('id');
26 26
             $table->string('name', 50)->unique();
27 27
             $table->string('slug', 50);
28 28
             $table->timestamps();
29 29
         });
30 30
 
31
-        Schema::create(config('admin.database.permissions_table'), function (Blueprint $table) {
31
+        Schema::create(config('admin.database.permissions_table'), function(Blueprint $table) {
32 32
             $table->increments('id');
33 33
             $table->string('name', 50)->unique();
34 34
             $table->string('slug', 50);
35 35
             $table->timestamps();
36 36
         });
37 37
 
38
-        Schema::create(config('admin.database.menu_table'), function (Blueprint $table) {
38
+        Schema::create(config('admin.database.menu_table'), function(Blueprint $table) {
39 39
             $table->increments('id');
40 40
             $table->integer('parent_id')->default(0);
41 41
             $table->integer('order');
@@ -46,35 +46,35 @@  discard block
 block discarded – undo
46 46
             $table->timestamps();
47 47
         });
48 48
 
49
-        Schema::create(config('admin.database.role_users_table'), function (Blueprint $table) {
49
+        Schema::create(config('admin.database.role_users_table'), function(Blueprint $table) {
50 50
             $table->integer('role_id');
51 51
             $table->integer('user_id');
52 52
             $table->index(['role_id', 'user_id']);
53 53
             $table->timestamps();
54 54
         });
55 55
 
56
-        Schema::create(config('admin.database.role_permissions_table'), function (Blueprint $table) {
56
+        Schema::create(config('admin.database.role_permissions_table'), function(Blueprint $table) {
57 57
             $table->integer('role_id');
58 58
             $table->integer('permission_id');
59 59
             $table->index(['role_id', 'permission_id']);
60 60
             $table->timestamps();
61 61
         });
62 62
 
63
-        Schema::create(config('admin.database.user_permissions_table'), function (Blueprint $table) {
63
+        Schema::create(config('admin.database.user_permissions_table'), function(Blueprint $table) {
64 64
             $table->integer('user_id');
65 65
             $table->integer('permission_id');
66 66
             $table->index(['user_id', 'permission_id']);
67 67
             $table->timestamps();
68 68
         });
69 69
 
70
-        Schema::create(config('admin.database.role_menu_table'), function (Blueprint $table) {
70
+        Schema::create(config('admin.database.role_menu_table'), function(Blueprint $table) {
71 71
             $table->integer('role_id');
72 72
             $table->integer('menu_id');
73 73
             $table->index(['role_id', 'menu_id']);
74 74
             $table->timestamps();
75 75
         });
76 76
 
77
-        Schema::create(config('admin.database.operation_log_table'), function (Blueprint $table) {
77
+        Schema::create(config('admin.database.operation_log_table'), function(Blueprint $table) {
78 78
             $table->increments('id');
79 79
             $table->integer('user_id');
80 80
             $table->string('path');
Please login to merge, or discard this patch.