3 use Phinx\Migration\AbstractMigration;
4 use Phinx\Db\Adapter\MysqlAdapter;
18 if ($this->hasTable(
"users_remember_me_cookies")) {
22 $table = $this->table(
"users_remember_me_cookies", [
24 'primary_key' => [
"code"],
26 'encoding' =>
"utf8mb4",
27 'collation' =>
"utf8mb4_general_ci",
30 $table->addColumn(
'code',
'string', [
35 $table->addColumn(
'guid',
'integer', [
37 'limit' => MysqlAdapter::INT_BIG,
42 $table->addColumn(
'timestamp',
'integer', [
44 'limit' => MysqlAdapter::INT_REGULAR,
49 $table->addIndex([
'timestamp'], [
50 'name' =>
"timestamp",
change()
CREATE TABLE prefix_users_remember_me_cookies ( code varchar(32) NOT NULL, guid bigint(20) unsigned N...