3 use Phinx\Migration\AbstractMigration;
4 use Phinx\Db\Adapter\MysqlAdapter;
17 if ($this->hasTable(
"hmac_cache")) {
21 $table = $this->table(
"hmac_cache", [
23 'primary_key' => [
"hmac"],
25 'encoding' =>
"utf8mb4",
26 'collation' =>
"utf8mb4_general_ci",
29 $table->addColumn(
'hmac',
'string', [
31 'limit' => MysqlAdapter::TEXT_SMALL,
33 'collation' =>
"utf8_general_ci",
36 $table->addColumn(
'ts',
'integer', [
38 'limit' => MysqlAdapter::INT_REGULAR,
change()
CREATE TABLE prefix_hmac_cache ( hmac varchar(255) CHARACTER SET utf8 NOT NULL, ts int(11) NOT NULL,...