sequelize-typescript-migration-rafaeltab
Version:
migration tool for sequelize & typescript users
12 lines (11 loc) • 428 B
TypeScript
export interface IAction {
actionType: "createTable" | "addIndex" | "addColumn" | "dropTable" | "removeColumn" | "removeIndex" | "changeColumn";
tableName: string;
attributes?: any;
attributeName?: any;
options?: any;
columnName?: any;
fields?: any[];
depends: string[];
}
export default function getDiffActionsFromTables(previousStateTables: any, currentStateTables: any): IAction[];