Skip to content

Commit

Permalink
Merge pull request #245 from utopia-php/create-table-mariadb
Browse files Browse the repository at this point in the history
Use VARCHAR instead of CHAR for MariaDB UID
  • Loading branch information
abnegate authored Aug 10, 2023
2 parents ed830ec + b5f8c60 commit 4d55c6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Database/Adapter/MariaDB.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public function createCollection(string $name, array $attributes = [], array $in
$this->getPDO()
->prepare("CREATE TABLE IF NOT EXISTS `{$database}`.`{$namespace}_{$id}` (
`_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`_uid` CHAR(255) NOT NULL,
`_uid` VARCHAR(255) NOT NULL,
`_createdAt` datetime(3) DEFAULT NULL,
`_updatedAt` datetime(3) DEFAULT NULL,
`_permissions` MEDIUMTEXT DEFAULT NULL,
Expand Down

0 comments on commit 4d55c6e

Please sign in to comment.