Use bigint for autoincremented column

Signed-off-by: Christopher Ng <chrng8@gmail.com>
This commit is contained in:
Christopher Ng 2021-12-13 19:51:48 +00:00
parent 09915ec15e
commit c85ab47a11
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ class Version23000Date20210930122352 extends SimpleMigrationStep {
$hasTable = $schema->hasTable(self::TABLE_NAME);
if (!$hasTable) {
$table = $schema->createTable(self::TABLE_NAME);
$table->addColumn('id', Types::INTEGER, [
$table->addColumn('id', Types::BIGINT, [
'autoincrement' => true,
'notnull' => true,
]);