Files
medusa-store/docs/content/advanced/backend/upgrade-guides/1-3-6.md
Shahed Nasser 76a16aa131 docs: redesigned documentation (#2539)
* docs: redesigned navigation bar (#2478)

* docs: redesigned homepage (#2480)

* docs: redesigned homepage

* fixed link

* docs: redesigned notes (#2491)

* docs: Applied Typography redesign rules (#2516)

* changes to typography

* small changes and fixes

* docs: redesigned table of content (#2518)

* redesigning toc

* finalized table of content design

* docs: redesigned code blocks (#2519)

* docs: redesigned code blocks

* removed unused package

* docs: redesigned survey and content footer (#2522)

* fixes to inline code

* redesigned doc footer

* docs: redesigned footer (#2523)

* docs: changed dark mode colors (#2524)

* docs: redesigned sidebar (#2535)

* docs: redesigned search modal (#2537)

* docs: resolved loose ends (#2538)

* added spacing for tabs

* docs: added no-zoom class for deploy images

* fix to tooltip design for inline code
2022-11-03 18:59:46 +02:00

1.9 KiB
Raw Blame History

description
description
Actions Required for v.1.3.0

v1.3.6

Following the addition of feature flags in version v1.3.3 and the addition of the Sales Channels API in v1.3.5, v1.3.6 introduces a data migration script that moves all products into the Default Sales Channel.

:::note

In version 1.3.6, Sales Channels are available but guraded by feature flags. If you dont have Sales Channels enabled, you dont need to follow the steps detailed in this migration script.

:::

Prerequisites

Before performing the actions mentioned in this guide, you must set the following environment variables:

TYPEORM_CONNECTION=postgres
TYPEORM_URL=<DATABASE_URL>
TYPEORM_LOGGING=true
TYPEORM_ENTITIES=./node_modules/@medusajs/medusa/dist/models/*.js
TYPEORM_MIGRATIONS=./node_modules/@medusajs/medusa/dist/migrations/*.js

These environment variables are used in the data migration scripts in this upgrade. Make sure to replace <DATABASE_URL> with your PostgreSQL database URL.

Sales Channels

Sales Channels were introduced in v1.3.5 guarded by a feature flag. By enabling Sales Channels, developers and users can associate products and other entities with a specific Sales Channel.

However, if you upgraded Medusa to v1.3.5 and enabled Sales Channels, you must add every product to at least one Sales Channel manually. Otherwise, products cant be added to carts in different Sales Channels.

v1.3.6 introduces a data migration script that automates this process for you by moving all your products into a default Sales Channel. This ensures that you can use the Sales Channels feature without it affecting the user experience in your store.

Actions Required

If youve enabled Sales Channels, its essential to run the data migration script after upgrading your server and before starting your Medusa server:

node ./node_modules/@medusajs/medusa/dist/scripts/sales-channels-migration.js