security/codeql-dependabot-gitleaks
| 1 | import { Migration } from "@medusajs/framework/mikro-orm/migrations" |
| 2 | |
| 3 | export class Migration20241009222919_InitialSetupMigration extends Migration { |
| 4 | async up(): Promise<void> { |
| 5 | this.addSql( |
| 6 | 'create table if not exists "locking" ("id" text not null, "owner_id" text null, "expiration" timestamptz null, constraint "locking_pkey" primary key ("id"));' |
| 7 | ) |
| 8 | } |
| 9 | |
| 10 | async down(): Promise<void> { |
| 11 | this.addSql(`drop table "locking";`) |
| 12 | } |
| 13 | } |