'How can I set 'id' as biginteger and autoincrement in phinx for PostgreSQL?

I tried to set as only biginter but it lost its autoincrement properties. So I tried adding auto-increment as well.

$table->changeColumn('id', 'biginteger', ['identity' => true])->update();

But it showed error.

PDOException: SQLSTATE[42704]: Undefined object: 7 ERROR: type "bigserial" does not exist

How is this possible for PostgreSQL?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source