diff --git a/database/migrations/2024_08_29_000001_create_sales_channel_for_each_default_price_map.php b/database/migrations/2024_08_29_000001_create_sales_channel_for_each_default_price_map.php index da02cdbd..ff6054bd 100644 --- a/database/migrations/2024_08_29_000001_create_sales_channel_for_each_default_price_map.php +++ b/database/migrations/2024_08_29_000001_create_sales_channel_for_each_default_price_map.php @@ -1,11 +1,13 @@ getDefaultPriceMapId()); if ($priceMap->salesChannels->count() === 0) { - SalesChannel::factory()->create([ + SalesChannel::create([ 'name' => 'Default channel for ' . $case->value, 'price_map_id' => $priceMap->id, 'status' => SalesChannelStatus::PRIVATE->value, 'activity' => SalesChannelActivityType::ACTIVE->value, 'default' => false, + 'slug' => Str::slug('Default channel for ' . $case->value), + 'language_id' => Language::default()->getKey(), + 'vat_rate' => '0', ]); } }