File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,3 +24,4 @@ export * from "./models/MediaManagerAP"
2424export * from "./models/MediaManagerAssociationsAP"
2525export * from "./models/MediaManagerMetaAP"
2626export * from "./models/NavigationAP"
27+ export * from "./migrations"
Original file line number Diff line number Diff line change @@ -69,4 +69,10 @@ export interface INotificationEvent {
6969 notificationClass ?: string ;
7070 channel ?: string
7171 userId ?: number ;
72- }
72+ }
73+
74+ export type Migration = {
75+ name : string ;
76+ up : ( args : { context : any } ) => Promise < unknown > | unknown ;
77+ down : ( args : { context : any } ) => Promise < unknown > | unknown ;
78+ } ;
Original file line number Diff line number Diff line change 1+ import { migrationsUmzug as umzug } from "./umzug" ;
2+
3+ export const migrations = {
4+ umzug
5+ }
Original file line number Diff line number Diff line change 1+ import { Migration } from "interfaces/types"
2+ import { up as up0001 , down as down0001 } from "./umzug/0001"
3+ export const migrationsUmzug : Migration [ ] = [
4+ {
5+ name : "0001" ,
6+ up : up0001 ,
7+ down : down0001
8+ }
9+ ]
You can’t perform that action at this time.
0 commit comments