@medusajs/order 0.1.3-snapshot-20240802122417 → 0.1.3-snapshot-20240805210411
Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Migration20240801085921.d.ts","sourceRoot":"","sources":["../../src/migrations/Migration20240801085921.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEjD,qBAAa,uBAAwB,SAAQ,SAAS;IAC9C,EAAE,IAAI,OAAO,CAAC,IAAI,CAAC;
|
1
|
+
{"version":3,"file":"Migration20240801085921.d.ts","sourceRoot":"","sources":["../../src/migrations/Migration20240801085921.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEjD,qBAAa,uBAAwB,SAAQ,SAAS;IAC9C,EAAE,IAAI,OAAO,CAAC,IAAI,CAAC;CAsB1B"}
|
@@ -5,10 +5,24 @@ const migrations_1 = require("@mikro-orm/migrations");
|
|
5
5
|
class Migration20240801085921 extends migrations_1.Migration {
|
6
6
|
async up() {
|
7
7
|
this.addSql(`
|
8
|
-
|
9
|
-
|
8
|
+
ALTER TABLE "return"
|
9
|
+
ADD COLUMN IF NOT exists "requested_at" timestamptz NULL;
|
10
10
|
|
11
|
-
|
11
|
+
|
12
|
+
ALTER TABLE "return" ALTER COLUMN "status" DROP DEFAULT;
|
13
|
+
ALTER TABLE "return" ALTER COLUMN "status" TYPE text USING "status"::text;
|
14
|
+
DROP TYPE return_status_enum;
|
15
|
+
|
16
|
+
CREATE TYPE return_status_enum AS ENUM (
|
17
|
+
'open',
|
18
|
+
'requested',
|
19
|
+
'received',
|
20
|
+
'partially_received',
|
21
|
+
'canceled'
|
22
|
+
);
|
23
|
+
|
24
|
+
ALTER TABLE "return" ALTER COLUMN "status" TYPE return_status_enum USING "status"::text::return_status_enum;
|
25
|
+
ALTER TABLE "return" ALTER COLUMN "status" SET DEFAULT 'open';
|
12
26
|
`);
|
13
27
|
}
|
14
28
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Migration20240801085921.js","sourceRoot":"","sources":["../../src/migrations/Migration20240801085921.ts"],"names":[],"mappings":";;;AAAA,sDAAiD;AAEjD,MAAa,uBAAwB,SAAQ,sBAAS;IACpD,KAAK,CAAC,EAAE;QACN,IAAI,CAAC,MAAM,CAAC
|
1
|
+
{"version":3,"file":"Migration20240801085921.js","sourceRoot":"","sources":["../../src/migrations/Migration20240801085921.ts"],"names":[],"mappings":";;;AAAA,sDAAiD;AAEjD,MAAa,uBAAwB,SAAQ,sBAAS;IACpD,KAAK,CAAC,EAAE;QACN,IAAI,CAAC,MAAM,CAAC;;;;;;;;;;;;;;;;;;;OAmBT,CAAC,CAAA;IACN,CAAC;CACF;AAvBD,0DAuBC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@medusajs/order",
|
3
|
-
"version": "0.1.3-snapshot-
|
3
|
+
"version": "0.1.3-snapshot-20240805210411",
|
4
4
|
"description": "Medusa Order module",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"types": "dist/index.d.ts",
|
@@ -34,19 +34,19 @@
|
|
34
34
|
"orm:cache:clear": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts mikro-orm cache:clear"
|
35
35
|
},
|
36
36
|
"devDependencies": {
|
37
|
-
"@medusajs/modules-sdk": "1.13.0-snapshot-
|
38
|
-
"@medusajs/types": "1.12.0-snapshot-
|
37
|
+
"@medusajs/modules-sdk": "1.13.0-snapshot-20240805210411",
|
38
|
+
"@medusajs/types": "1.12.0-snapshot-20240805210411",
|
39
39
|
"@mikro-orm/cli": "5.9.7",
|
40
40
|
"cross-env": "^5.2.1",
|
41
41
|
"jest": "^29.7.0",
|
42
|
-
"medusa-test-utils": "1.1.45-snapshot-
|
42
|
+
"medusa-test-utils": "1.1.45-snapshot-20240805210411",
|
43
43
|
"rimraf": "^3.0.2",
|
44
44
|
"ts-node": "^10.9.1",
|
45
45
|
"tsc-alias": "^1.8.6",
|
46
46
|
"typescript": "^5.1.6"
|
47
47
|
},
|
48
48
|
"dependencies": {
|
49
|
-
"@medusajs/utils": "1.12.0-snapshot-
|
49
|
+
"@medusajs/utils": "1.12.0-snapshot-20240805210411",
|
50
50
|
"@mikro-orm/core": "5.9.7",
|
51
51
|
"@mikro-orm/migrations": "5.9.7",
|
52
52
|
"@mikro-orm/postgresql": "5.9.7",
|