mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 17:08:45 +00:00
Quote attribute name
This commit is contained in:
parent
c60d7764e4
commit
0f1c1fda9e
1 changed files with 1 additions and 1 deletions
|
|
@ -351,7 +351,7 @@ abstract class Migration
|
|||
*/
|
||||
protected function changeAttributeInternalType(string $collection, string $attribute, string $type): void
|
||||
{
|
||||
$stmt = $this->pdo->prepare("ALTER TABLE `{$this->projectDB->getDefaultDatabase()}`.`_{$this->project->getInternalId()}_{$collection}` MODIFY $attribute $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