hasTable('federated_reshares')) { $table = $schema->createTable('federated_reshares'); $table->addColumn('share_id', Types::BIGINT, [ 'notnull' => true, ]); $table->addColumn('remote_id', Types::STRING, [ 'notnull' => false, 'length' => 255, 'default' => '', ]); $table->setPrimaryKey(['share_id'], 'federated_res_pk'); // $table->addUniqueIndex(['share_id'], 'share_id_index'); } return $schema; } }