19 if ($this->hasTable(
'delayed_email_queue')) {
24 $table = $this->table(
'delayed_email_queue', [
26 'encoding' =>
'utf8mb4',
27 'collation' =>
'utf8mb4_general_ci',
32 $table->addColumn(
'recipient_guid', MysqlAdapter::PHINX_TYPE_BIG_INTEGER, [
34 'limit' => MysqlAdapter::INT_BIG,
39 $table->addColumn(
'delivery_interval', MysqlAdapter::PHINX_TYPE_STRING, [
41 'limit' => MysqlAdapter::INT_TINY,
44 $table->addColumn(
'data', MysqlAdapter::PHINX_TYPE_BLOB, [
46 'limit' => MysqlAdapter::BLOB_MEDIUM,
49 $table->addColumn(
'timestamp', MysqlAdapter::PHINX_TYPE_INTEGER, [
51 'limit' => MysqlAdapter::INT_REGULAR,
56 $table->addIndex([
'recipient_guid'], [
57 'name' =>
'recipient_guid',
60 $table->addIndex([
'delivery_interval'], [
61 'name' =>
'delivery_interval',
64 $table->addIndex([
'recipient_guid',
'delivery_interval'], [
65 'name' =>
'recipient_interval',
change()
CREATE TABLE prefix_delayed_email_queue ( id int(11) unsigned NOT NULL AUTO_INCREMENT, recipient_guid bigint(20) unsigned NOT NULL, delivery_interval varchar(255) NOT NULL, data mediumblob NOT NULL, timestamp int(11) NOT NULL, PRIMARY KEY (id), ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;.