From 28a9a373b11fdec0eb78fb9050296636e714a962 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Tue, 11 Apr 2023 22:27:29 +1200 Subject: [PATCH] Fix binding --- src/Appwrite/Migration/Migration.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Appwrite/Migration/Migration.php b/src/Appwrite/Migration/Migration.php index 767fc0c4ec..9b17b30c2d 100644 --- a/src/Appwrite/Migration/Migration.php +++ b/src/Appwrite/Migration/Migration.php @@ -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();