Total Complexity | 3 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | class Version20190715065013 extends AbstractMauticMigration |
||
21 | { |
||
22 | /** |
||
23 | * @param Schema $schema |
||
24 | * |
||
25 | * @throws SkipMigrationException |
||
26 | * @throws \Doctrine\DBAL\Schema\SchemaException |
||
27 | */ |
||
28 | public function preUp(Schema $schema) |
||
29 | { |
||
30 | $table = $schema->getTable($this->prefix.'forms'); |
||
31 | |||
32 | if ($table->hasColumn('form_attr')) { |
||
33 | throw new SkipMigrationException('Schema includes this migration'); |
||
34 | } |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * @param Schema $schema |
||
39 | */ |
||
40 | public function up(Schema $schema) |
||
43 | } |
||
44 | } |
||
45 |