hasTable($tableName)) { $table = $schema->createTable($tableName); $table->addColumn('id', Types::BIGINT, [ 'autoincrement' => true, 'notnull' => true, ]); $table->addColumn('user_id', Types::STRING, [ 'notnull' => true, 'length' => 64, ]); $table->addColumn('email_address', Types::STRING, [ 'notnull' => true, 'length' => 255, ]); $table->addColumn('certificate', Types::TEXT, [ 'notnull' => true, ]); $table->addColumn('private_key', Types::TEXT, [ 'notnull' => false, ]); $table->setPrimaryKey(['id'], 'mail_smime_certs_id_idx'); $table->addIndex(['user_id'], 'mail_smime_certs_uid_idx'); // Dropped in Version3600Date20240205180726 // $table->addIndex(['id', 'user_id'], 'mail_smime_certs_id_uid_idx'); } return $schema; } }