Files
medusa-store/packages/modules/api-key/src/migrations/Migration20240604080145.ts
Harminder Virk 48e00169d2 breaking: move shared HTTP utils to the framework (#9402)
Fixes: FRMW-2728, FRMW-2729

After this PR gets merged the following middleware will be exported from the `@medusajs/framework/http` import path.

- applyParamsAsFilters
- clearFiltersByKey
- applyDefaultFilters
- setContext
- getQueryConfig
- httpCompression
- maybeApplyLinkFilter
- refetchEntities
- unlessPath
- validateBody
- validateQuery

Co-authored-by: Adrien de Peretti <25098370+adrien2p@users.noreply.github.com>
2024-10-03 09:42:00 +00:00

16 lines
417 B
TypeScript

import { Migration } from "@mikro-orm/migrations"
export class Migration20240604080145 extends Migration {
async up(): Promise<void> {
this.addSql(
'alter table if exists "api_key" add column if not exists "updated_at" timestamptz not null default now();'
)
}
async down(): Promise<void> {
this.addSql(
'alter table if exists "api_key" drop column if exists "updated_at";'
)
}
}