feat: implement third-party order sync
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
ALTER TABLE `courses`
|
||||
ADD COLUMN `content` text NULL AFTER `name`;
|
||||
|
||||
UPDATE `courses`
|
||||
SET `content` = JSON_UNQUOTE(JSON_EXTRACT(`raw_payload`, '$.content'))
|
||||
WHERE `content` IS NULL
|
||||
AND JSON_EXTRACT(`raw_payload`, '$.content') IS NOT NULL;
|
||||
Reference in New Issue
Block a user