@launchql/migrate
Version:
LaunchQL Migrate
56 lines (55 loc) • 1.18 kB
TypeScript
import { PgConfig } from 'pg-env';
export interface Change {
name: string;
dependencies: string[];
timestamp?: string;
planner?: string;
email?: string;
comment?: string;
}
export interface PlanFile {
project: string;
uri?: string;
changes: Change[];
}
export interface DeployOptions {
project: string;
targetDatabase: string;
planPath: string;
toChange?: string;
useTransaction?: boolean;
}
export interface RevertOptions {
project: string;
targetDatabase: string;
planPath: string;
toChange?: string;
useTransaction?: boolean;
}
export interface VerifyOptions {
project: string;
targetDatabase: string;
planPath: string;
}
export interface DeployResult {
deployed: string[];
skipped: string[];
failed?: string;
}
export interface RevertResult {
reverted: string[];
skipped: string[];
failed?: string;
}
export interface VerifyResult {
verified: string[];
failed: string[];
}
export interface StatusResult {
project: string;
totalDeployed: number;
lastChange: string;
lastDeployed: Date;
}
export interface MigrateConfig extends PgConfig {
}