File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -30,12 +30,12 @@ public function up()
30
30
$ table ->unsignedTinyInteger ('state ' )->comment ('人员状态(1->正常 2->调出 3->退出 4->停薪留职) ' )->default (1 );
31
31
$ table ->unsignedTinyInteger ('teaching_id ' )->comment ('教学科目Id ' )->nullable ;
32
32
$ table ->timestamps ();
33
- $ table ->comment ('教职工信息表 ' );
34
33
$ table ->unique ('card_id ' );
35
34
$ table ->unique ('phone ' );
36
35
$ table ->unique ('phone2 ' );
37
- $ table ->foreign ('teaching_id ' )->reference ('id ' )->on ('yz_teaching ' );
38
- $ table ->foreign ('nation_id ' )->reference ('id ' )->on ('yz_nation ' );
36
+ // 要设置外键的话 必须先保证相应的表格先存在
37
+ // $table->foreign('teaching_id')->reference('id')->on('yz_teaching');
38
+ // $table->foreign('nation_id')->reference('id')->on('yz_nation');
39
39
});
40
40
}
41
41
Original file line number Diff line number Diff line change @@ -14,5 +14,6 @@ public function run()
14
14
$ this ->call (UsersTableSeeder::class);
15
15
$ this ->call (RolesTableSeeder::class);
16
16
$ this ->call (SessionsTableSeeder::class);
17
+ $ this ->call (PermissionsTableSeeder::class);
17
18
}
18
19
}
You can’t perform that action at this time.
0 commit comments