Ghost/core/server/data/migrations/versions/4.3
Fabien 'egg' O'Carroll 25182b7b82
Added products and members_products tables (#12844)
refs https://github.com/TryGhost/Team/issues/586

- Add the products table, so that we can store Products in Ghost 
- Add the members_products table, so that we can associate Members w/ Products
- Use sort_order on the members_products table to follow the same convention in members_labels
- Populate the products table with a single product, using the name from the stripe_product_name setting
- Populate the members_products table with relations based on the status column of the members table

Populating the tables allows us to transition from the current system, which does not care about products, into the
new system, where Products are used to group members. The intention is that all existing paid members have the
same product
2021-04-08 14:15:30 +01:00
..
01-add-products-table.js Added products and members_products tables (#12844) 2021-04-08 14:15:30 +01:00
02-add-members-products-table.js Added products and members_products tables (#12844) 2021-04-08 14:15:30 +01:00
03-add-default-product.js Added products and members_products tables (#12844) 2021-04-08 14:15:30 +01:00
04-attach-members-to-product.js Added products and members_products tables (#12844) 2021-04-08 14:15:30 +01:00