security/codeql-dependabot-gitleaks
| 1 | import { Migration } from "@medusajs/framework/mikro-orm/migrations"; |
| 2 | |
| 3 | export class Migration20250131205753 extends Migration { |
| 4 | |
| 5 | async up(): Promise<void> { |
| 6 | this.addSql('CREATE UNIQUE INDEX IF NOT EXISTS "IDX_account_id" ON "store_credit_transaction_group" (code, account_id) WHERE deleted_at IS NULL;'); |
| 7 | } |
| 8 | |
| 9 | async down(): Promise<void> { |
| 10 | this.addSql('drop index if exists "IDX_account_id";'); |
| 11 | } |
| 12 | |
| 13 | } |