| @@ -50,8 +50,11 @@ | ||
| 50 | 50 | consent_text TEXT, |
| 51 | 51 | consent_field varchar(64) DEFAULT '', |
| 52 | 52 | reminder_sent_at varchar(255) DEFAULT '', |
| 53 | 53 | mail_reminder LONGTEXT, |
| 54 | + mail_status varchar(20) NOT NULL DEFAULT '', | |
| 55 | + mail_error varchar(255) NOT NULL DEFAULT '', | |
| 56 | + mail_status_at varchar(19) NOT NULL DEFAULT '', | |
| 54 | 57 | PRIMARY KEY (id) |
| 55 | 58 | )"; |
| 56 | 59 | |
| 57 | 60 | dbDelta( $sql ); |
| @@ -134,8 +137,13 @@ | ||
| 134 | 137 | createTableOptin(); |
| 135 | 138 | createTableOptinCategories(); |
| 136 | 139 | createTableAuditLog(); |
| 137 | 140 | \Forge12\DoubleOptIn\Repository\FollowUpSchema::install(); |
| 141 | + } | |
| 142 | + | |
| 143 | + // Open the setup wizard once after a single-site activation. | |
| 144 | + if ( class_exists( '\Forge12\DoubleOptIn\Setup\SetupRedirect' ) ) { | |
| 145 | + \Forge12\DoubleOptIn\Setup\SetupRedirect::onActivation( (bool) $network_wide ); | |
| 138 | 146 | } |
| 139 | 147 | |
| 140 | 148 | $logger->info( 'Plugin activation completed', [ |
| 141 | 149 | 'plugin' => 'double-opt-in', |