Sync/DiffProvider/SyncJobs/TableManager.php
protected function addStatusField(Table $table)
    {
        if (empty($this->shops)) {
            $table->addColumn('status', 'boolean', ['default' => 0])->setComment('0-new,1-done');
            $table->addIndex(['status']);
        } else {
            foreach ($this->shops as $shop) {
                $fieldName = "status_{$shop}";
                $table->addColumn($fieldName, 'boolean', ['default' => 0])->setComment('0-new,1-done');
                $table->addIndex([$fieldName]);
            }
        }
    }
protected function addStatusField(Table $table)
    {
        if (empty($this->shops)) {
            $table->addColumn('status', 'boolean', ['default' => 0])->setComment('0-new,1-done');
            $table->addIndex(['status']);
        } else {
            foreach ($this->shops as $shop) {
                $fieldName = "status_{$shop}";
                $table->addColumn($fieldName, 'boolean', ['default' => 0])->setComment('0-new,1-done');
                $table->addIndex([$fieldName]);
            }
        }
    }
Dynamically add status field or fields in case of multi-shop.

@param Table $table