Philip Korsholm
00fd096d25
Feat: Discount migration (#1214)
* feat: Add DiscountCondition entity + Join table per relation (#1146)
* feat: Convert DiscountService to TypeScript (#1149)
* feat: Add DiscountRepository + bulk insert and remove (#1156)
* feat: Add `conditions` to payload in `POST /discounts` and `POST /discounts/:id` (#1170)
* feat: Add DiscountRuleCondition entity
* fix relation
* fix join key
* Add discount rule condition repo
* add join table per relation
* Convert DiscountService to TypeScript
* feat: Add DiscountConditionRepository
* Add migration + remove use of valid_for
* revert changes to files, not done yet
* init work on create discount endpoint
* Add conditions to create discount endpoint
* Add conditions to update discount endpoint
* Add unique constraint to discount condition
* integration tests passing
* fix imports of models
* fix tests (excluding totals calculations)
* Fix commented code
* add unique constraint on discount condition
* Add generic way of generating retrieve configs
* Requested changes + ExactlyOne validator
* Remove isLocal flag from error handler
* Use postgres error constant
* remove commented code
* initial
* add migration scripts
* make getMigrationsFolder generic
* add datamodel migration command
* add datamodel run to migraitons cli
* remove data migration code from migrations
* add inner join
* add migration script for discount migration
* redo all script changes after adding script file
* address pr feedback
* cherrypick files from develop
* remove unused import
* suggestions
* Update packages/medusa/src/scripts/discount-rule-migration.ts
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
* fix: revert rule id to dr_id
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
Co-authored-by: olivermrbl <oliver@mrbltech.com>
2022-04-27 10:25:04 +02:00
..
2022-01-11 16:54:08 +01:00
2022-03-25 22:26:48 +01:00
2022-04-27 10:25:04 +02:00
2022-02-28 16:57:42 +01:00
2022-01-11 16:54:08 +01:00
2022-04-13 17:42:09 +02:00
2022-04-13 17:42:09 +02:00
2022-03-24 16:47:50 +01:00
2022-04-13 18:35:13 +02:00
2022-04-21 15:22:07 +02:00
2022-01-11 16:54:08 +01:00
2022-02-28 16:57:42 +01:00
2022-01-11 16:54:08 +01:00
2022-02-28 16:57:42 +01:00
2022-01-11 16:54:08 +01:00
2022-03-23 17:17:19 +01:00
2022-02-28 16:57:42 +01:00
2022-02-28 16:57:42 +01:00
2022-03-17 23:29:26 +01:00
2022-01-11 16:54:08 +01:00
2022-04-12 16:42:53 +02:00
2022-02-06 19:29:53 +01:00
2022-02-28 16:57:42 +01:00
2022-01-11 16:54:08 +01:00
2022-02-06 19:29:53 +01:00
2022-03-24 16:47:50 +01:00
2022-03-24 16:47:50 +01:00
2022-03-24 16:47:50 +01:00
2022-01-11 16:54:08 +01:00
2022-01-11 16:54:08 +01:00
2022-04-21 15:22:07 +02:00
2022-03-15 20:12:52 +01:00
2022-01-11 16:54:08 +01:00