feat(catalog): add event_id to catalog items and backfill existing records
This commit is contained in:
@@ -51,6 +51,15 @@ class DesfilePuraTendenciaSeeder extends Seeder
|
||||
});
|
||||
}
|
||||
|
||||
$activeEventId = DB::table('tenants')
|
||||
->where('codigo', self::TENANT_CODE)
|
||||
->value('active_event_id');
|
||||
if ($activeEventId !== null) {
|
||||
DB::table('catalog_items')
|
||||
->where('tenant_code', self::TENANT_CODE)
|
||||
->update(['event_id' => $activeEventId]);
|
||||
}
|
||||
|
||||
$this->invitationPurchaseProvisioner->provision();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user