1 | <?php |
||
19 | abstract class AbstractElementMetricMigration extends Migration |
||
20 | { |
||
21 | /** |
||
22 | * The record class |
||
23 | */ |
||
24 | const RECORD_CLASS = ElementMetric::class; |
||
25 | |||
26 | /** |
||
27 | * @return string |
||
28 | */ |
||
29 | protected static function tableName(): string |
||
36 | |||
37 | /** |
||
38 | * @inheritdoc |
||
39 | */ |
||
40 | public function safeUp() |
||
47 | |||
48 | /** |
||
49 | * @inheritdoc |
||
50 | */ |
||
51 | public function safeDown() |
||
57 | |||
58 | /** |
||
59 | * Creates the table(s). |
||
60 | * |
||
61 | * @return void |
||
62 | */ |
||
63 | protected function createTables() |
||
67 | |||
68 | /** |
||
69 | * The table attributes |
||
70 | * |
||
71 | * @return array |
||
72 | */ |
||
73 | protected function tableAttributes(): array |
||
90 | |||
91 | /** |
||
92 | * Adds the foreign keys. |
||
93 | * |
||
94 | * @return void |
||
95 | */ |
||
96 | protected function addForeignKeys() |
||
122 | } |
||
123 |