security/codeql-dependabot-gitleaks
| 1 | import { Migration } from "@medusajs/framework/mikro-orm/migrations" |
| 2 | |
| 3 | export class Migration20250106142624 extends Migration { |
| 4 | async up(): Promise<void> { |
| 5 | this.addSql( |
| 6 | 'alter table if exists "stock_location" add constraint "stock_location_address_id_unique" unique ("address_id");' |
| 7 | ) |
| 8 | } |
| 9 | |
| 10 | async down(): Promise<void> { |
| 11 | this.addSql( |
| 12 | 'alter table if exists "stock_location" drop constraint if exists "stock_location_address_id_unique";' |
| 13 | ) |
| 14 | } |
| 15 | } |