Fix binding
This commit is contained in:
parent
f6bd9d4150
commit
28a9a373b1
1 changed files with 1 additions and 5 deletions
|
@ -351,11 +351,7 @@ abstract class Migration
|
|||
*/
|
||||
protected function changeAttributeInternalType(string $collection, string $attribute, string $type): void
|
||||
{
|
||||
$stmt = $this->pdo->prepare('ALTER TABLE :table MODIFY :attribute :type;');
|
||||
|
||||
$stmt->bindValue(':table', "{$this->projectDB->getDefaultDatabase()}`.`_{$this->project->getInternalId()}_{$collection}`");
|
||||
$stmt->bindValue(':attribute', $attribute);
|
||||
$stmt->bindValue(':type', $type);
|
||||
$stmt = $this->pdo->prepare("ALTER TABLE `{$this->projectDB->getDefaultDatabase()}`.`_{$this->project->getInternalId()}_{$collection}` MODIFY $attribute $type;");
|
||||
|
||||
try {
|
||||
$stmt->execute();
|
||||
|
|
Loading…
Reference in a new issue