Conditions | 3 |
Paths | 4 |
Total Lines | 16 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
13 | public function boot() |
||
14 | { |
||
15 | $timestamp = date('Y_m_d_His', time()); |
||
16 | |||
17 | if (!class_exists('CreateSpecificationsAttributesTable')) { |
||
18 | $this->publishes([ |
||
19 | __DIR__ . '/../resources/migrations/create_specifications_attributes_table.php.stub' => database_path('migrations/' . $timestamp . '_create_specifications_attributes_table.php'), |
||
20 | ], 'migrations'); |
||
21 | } |
||
22 | |||
23 | if (!class_exists('CreateSpecificationsScoresTable')) { |
||
24 | $this->publishes([ |
||
25 | __DIR__ . '/../resources/migrations/create_specifications_scores_table.php.stub' => database_path('migrations/' . $timestamp . '_create_specifications_scores_table.php'), |
||
26 | ], 'migrations'); |
||
27 | } |
||
28 | } |
||
29 | |||
40 |