@@ 564-573 (lines=10) @@ | ||
561 | $sql = []; |
|
562 | $tableSql = []; |
|
563 | ||
564 | if ( ! $this->onSchemaAlterTable($diff, $tableSql)) { |
|
565 | if (count($queryParts) > 0) { |
|
566 | $sql[] = 'ALTER TABLE ' . $diff->getName($this)->getQuotedName($this) . ' ' . implode(", ", $queryParts); |
|
567 | } |
|
568 | $sql = array_merge( |
|
569 | $this->getPreAlterTableIndexForeignKeySQL($diff), |
|
570 | $sql, |
|
571 | $this->getPostAlterTableIndexForeignKeySQL($diff) |
|
572 | ); |
|
573 | } |
|
574 | ||
575 | return array_merge($sql, $tableSql, $columnSql); |
|
576 | } |
@@ 629-638 (lines=10) @@ | ||
626 | $sql = []; |
|
627 | $tableSql = []; |
|
628 | ||
629 | if ( ! $this->onSchemaAlterTable($diff, $tableSql)) { |
|
630 | if (count($queryParts) > 0) { |
|
631 | $sql[] = 'ALTER TABLE ' . $diff->getName($this)->getQuotedName($this) . ' ' . implode(", ", $queryParts); |
|
632 | } |
|
633 | $sql = array_merge( |
|
634 | $this->getPreAlterTableIndexForeignKeySQL($diff), |
|
635 | $sql, |
|
636 | $this->getPostAlterTableIndexForeignKeySQL($diff) |
|
637 | ); |
|
638 | } |
|
639 | ||
640 | return array_merge($sql, $tableSql, $columnSql); |
|
641 | } |