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>
16 lines
417 B
TypeScript
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";'
|
|
)
|
|
}
|
|
}
|