@jsm406/medusa-plugin-carrousel 1.0.0 → 1.0.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.
@@ -0,0 +1,5 @@
1
+ import { Migration } from "@mikro-orm/migrations";
2
+ export default class Migration20240101000001BannerInit extends Migration {
3
+ up(): Promise<void>;
4
+ down(): Promise<void>;
5
+ }
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const migrations_1 = require("@mikro-orm/migrations");
4
+ class Migration20240101000001BannerInit extends migrations_1.Migration {
5
+ async up() {
6
+ this.addSql(`
7
+ CREATE TABLE IF NOT EXISTS "banner" (
8
+ "id" text NOT NULL PRIMARY KEY,
9
+ "title" text NOT NULL,
10
+ "subtitle" text,
11
+ "image_url" text NOT NULL,
12
+ "link" text,
13
+ "button_text" text,
14
+ "rank" integer NOT NULL DEFAULT 0,
15
+ "is_active" boolean NOT NULL DEFAULT true,
16
+ "created_at" timestamptz NOT NULL DEFAULT now(),
17
+ "updated_at" timestamptz NOT NULL DEFAULT now(),
18
+ "deleted_at" timestamptz
19
+ )
20
+ `);
21
+ }
22
+ async down() {
23
+ this.addSql(`DROP TABLE IF EXISTS "banner"`);
24
+ }
25
+ }
26
+ exports.default = Migration20240101000001BannerInit;
27
+ //# sourceMappingURL=20240101000001BannerInit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"20240101000001BannerInit.js","sourceRoot":"","sources":["../../../../../src/modules/banner/migrations/20240101000001BannerInit.ts"],"names":[],"mappings":";;AAAA,sDAAkD;AAElD,MAAqB,iCAAkC,SAAQ,sBAAS;IACtE,KAAK,CAAC,EAAE;QACN,IAAI,CAAC,MAAM,CAAC;;;;;;;;;;;;;;KAcX,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,IAAI;QACR,IAAI,CAAC,MAAM,CAAC,+BAA+B,CAAC,CAAC;IAC/C,CAAC;CACF;AAtBD,oDAsBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsm406/medusa-plugin-carrousel",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Medusa v2 Banner (Hero Slider) plugin with Admin UI and storefront API",
5
5
  "author": "Juan Soler Márquez",
6
6
  "license": "MIT",