hasTable('mail_accounts')) { $table = $schema->getTable('mail_accounts'); $table->modifyColumn('provisioned', [ 'notnull' => false, 'default' => false ]); $table->modifyColumn('show_subscribed_only', [ 'notnull' => false, 'default' => false ]); $table = $schema->getTable('mail_accounts'); $table->modifyColumn('sieve_enabled', [ 'notnull' => false, 'default' => false ]); } if ($schema->hasTable('mail_classifiers')) { $table = $schema->getTable('mail_classifiers'); $table->modifyColumn('active', [ 'notnull' => false, 'default' => false ]); } if ($schema->hasTable('mail_mailboxes')) { $table = $schema->getTable('mail_mailboxes'); $table->modifyColumn('selectable', [ 'notnull' => false, 'default' => false ]); $table->modifyColumn('sync_in_background', [ 'notnull' => false, 'default' => false ]); } if ($schema->hasTable('mail_messages')) { $table = $schema->getTable('mail_messages'); $table->modifyColumn('flag_answered', [ 'notnull' => false, 'default' => false ]); $table->modifyColumn('flag_deleted', [ 'notnull' => false, 'default' => false ]); $table->modifyColumn('flag_draft', [ 'notnull' => false, 'default' => false ]); $table->modifyColumn('flag_flagged', [ 'notnull' => false, 'default' => false ]); $table->modifyColumn('flag_seen', [ 'notnull' => false, 'default' => false ]); $table->modifyColumn('flag_forwarded', [ 'notnull' => false, 'default' => false ]); $table->modifyColumn('flag_junk', [ 'notnull' => false, 'default' => false ]); $table->modifyColumn('flag_notjunk', [ 'notnull' => false, 'default' => false ]); $table->modifyColumn('flag_important', [ 'notnull' => false, 'default' => false ]); $table->modifyColumn('flag_mdnsent', [ 'notnull' => false, 'default' => false ]); $table->modifyColumn('structure_analyzed', [ 'notnull' => false, 'default' => false ]); } return $schema; } }