@gorgo/medusa-feed-yandex
Version:
A Medusa plugin that generates a product feed in YML (Yandex Market Language) format
15 lines • 1.61 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Migration20250530104034 = void 0;
const migrations_1 = require("@mikro-orm/migrations");
class Migration20250530104034 extends migrations_1.Migration {
async up() {
this.addSql(`create table if not exists "feed" ("id" text not null, "title" text null, "file_name" text null, "file_path" text null, "last_export_at" timestamptz null, "is_active" boolean not null default false, "schedule" integer not null default 30, "settings" jsonb null, "created_at" timestamptz not null default now(), "updated_at" timestamptz not null default now(), "deleted_at" timestamptz null, constraint "feed_pkey" primary key ("id"));`);
this.addSql(`CREATE INDEX IF NOT EXISTS "IDX_feed_deleted_at" ON "feed" (deleted_at) WHERE deleted_at IS NULL;`);
}
async down() {
this.addSql(`drop table if exists "feed" cascade;`);
}
}
exports.Migration20250530104034 = Migration20250530104034;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWlncmF0aW9uMjAyNTA1MzAxMDQwMzQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvbW9kdWxlcy9mZWVkL21pZ3JhdGlvbnMvTWlncmF0aW9uMjAyNTA1MzAxMDQwMzQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsc0RBQWtEO0FBRWxELE1BQWEsdUJBQXdCLFNBQVEsc0JBQVM7SUFFM0MsS0FBSyxDQUFDLEVBQUU7UUFDZixJQUFJLENBQUMsTUFBTSxDQUFDLG9iQUFvYixDQUFDLENBQUM7UUFDbGMsSUFBSSxDQUFDLE1BQU0sQ0FBQyxtR0FBbUcsQ0FBQyxDQUFDO0lBQ25ILENBQUM7SUFFUSxLQUFLLENBQUMsSUFBSTtRQUNqQixJQUFJLENBQUMsTUFBTSxDQUFDLHNDQUFzQyxDQUFDLENBQUM7SUFDdEQsQ0FBQztDQUVGO0FBWEQsMERBV0MifQ==