@mercurjs/b2c-core 1.3.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.medusa/server/src/admin/index.js +3 -38845
- package/.medusa/server/src/admin/index.mjs +3 -38828
- package/.medusa/server/src/modules/seller/migrations/Migration20250212131627.d.ts +1 -1
- package/.medusa/server/src/modules/seller/migrations/Migration20250212131627.js +1 -7
- package/package.json +1 -1
|
@@ -4,17 +4,11 @@ exports.Migration20250212131627 = void 0;
|
|
|
4
4
|
const migrations_1 = require("@mikro-orm/migrations");
|
|
5
5
|
class Migration20250212131627 extends migrations_1.Migration {
|
|
6
6
|
async up() {
|
|
7
|
-
this.addSql('drop table if exists "onboarding" cascade;');
|
|
8
7
|
this.addSql('alter table if exists "member" add column if not exists "email" text null;');
|
|
9
8
|
}
|
|
10
9
|
async down() {
|
|
11
|
-
this.addSql('create table if not exists "onboarding" ("id" text not null, "is_payout_account_setup_completed" boolean not null default false, "seller_id" text not null, "created_at" timestamptz not null default now(), "updated_at" timestamptz not null default now(), "deleted_at" timestamptz null, constraint "onboarding_pkey" primary key ("id"));');
|
|
12
|
-
this.addSql('alter table if exists "onboarding" add constraint "onboarding_seller_id_unique" unique ("seller_id");');
|
|
13
|
-
this.addSql('CREATE INDEX IF NOT EXISTS "IDX_onboarding_seller_id" ON "onboarding" (seller_id) WHERE deleted_at IS NULL;');
|
|
14
|
-
this.addSql('CREATE INDEX IF NOT EXISTS "IDX_onboarding_deleted_at" ON "onboarding" (deleted_at) WHERE deleted_at IS NULL;');
|
|
15
|
-
this.addSql('alter table if exists "onboarding" add constraint "onboarding_seller_id_foreign" foreign key ("seller_id") references "seller" ("id") on update cascade;');
|
|
16
10
|
this.addSql('alter table if exists "member" drop column if exists "email";');
|
|
17
11
|
}
|
|
18
12
|
}
|
|
19
13
|
exports.Migration20250212131627 = Migration20250212131627;
|
|
20
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
14
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWlncmF0aW9uMjAyNTAyMTIxMzE2MjcuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvbW9kdWxlcy9zZWxsZXIvbWlncmF0aW9ucy9NaWdyYXRpb24yMDI1MDIxMjEzMTYyNy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxzREFBa0Q7QUFFbEQsTUFBYSx1QkFBd0IsU0FBUSxzQkFBUztJQUNwRCxLQUFLLENBQUMsRUFBRTtRQUNOLElBQUksQ0FBQyxNQUFNLENBQ1QsNEVBQTRFLENBQzdFLENBQUM7SUFDSixDQUFDO0lBRUQsS0FBSyxDQUFDLElBQUk7UUFDUixJQUFJLENBQUMsTUFBTSxDQUNULCtEQUErRCxDQUNoRSxDQUFDO0lBQ0osQ0FBQztDQUNGO0FBWkQsMERBWUMifQ==
|