Skip to content

Commit

Permalink
Added SQL query
Browse files Browse the repository at this point in the history
  • Loading branch information
tmachyshyn committed Jun 12, 2023
1 parent 185a6ca commit ed923b5
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ public function run(Params $params): void
$data['fieldName'],
$data['columnName'],
$data['columnType'] ?? null,
$data['sql'] ?? null,
], $delimiter);
}
}
Expand All @@ -108,6 +109,7 @@ private function getHeaderList(): array
'Field Name',
'Column Name in Database',
'Column Type in Database',
'SQL',
];
}

Expand Down Expand Up @@ -154,6 +156,7 @@ private function getColumnData($entityType): array
'columnName' => $columnName,
'columnType' => $columnType,
'fieldName' => Util::toCamelCase($columnName),
'sql' => "ALTER TABLE `" . $tableName . "` DROP `" . $columnName . "`;",
];
}

Expand Down

0 comments on commit ed923b5

Please sign in to comment.