Conditions | 7 |
Paths | 64 |
Total Lines | 26 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | public function up(Schema $schema): void |
||
23 | { |
||
24 | $externalTool = $schema->getTable('lti_external_tool'); |
||
25 | |||
26 | if ($externalTool->hasForeignKey('FK_DB0E04E491D79BD3')) { |
||
27 | $this->addSql("ALTER TABLE lti_external_tool DROP FOREIGN KEY FK_DB0E04E491D79BD3"); |
||
28 | } |
||
29 | |||
30 | if ($externalTool->hasForeignKey('FK_DB0E04E4727ACA70')) { |
||
31 | $this->addSql("ALTER TABLE lti_external_tool DROP FOREIGN KEY FK_DB0E04E4727ACA70"); |
||
32 | } |
||
33 | |||
34 | if ($externalTool->hasIndex('IDX_DB0E04E4727ACA70')) { |
||
35 | $this->addSql("DROP INDEX IDX_DB0E04E4727ACA70 ON lti_external_tool"); |
||
36 | } |
||
37 | |||
38 | if ($externalTool->hasIndex('IDX_DB0E04E491D79BD3')) { |
||
39 | $this->addSql("DROP INDEX IDX_DB0E04E491D79BD3 ON lti_external_tool"); |
||
40 | } |
||
41 | |||
42 | if ($externalTool->hasColumn('c_id')) { |
||
43 | $this->addSql("ALTER TABLE lti_external_tool DROP COLUMN c_id"); |
||
44 | } |
||
45 | |||
46 | if ($externalTool->hasColumn('parent_id')) { |
||
47 | $this->addSql("ALTER TABLE lti_external_tool DROP COLUMN parent_id"); |
||
48 | } |
||
50 | } |