fcbae62baf
Replace single retentionDays with a three-tier BackupRetentionPolicy: - Daily: keep all backups (presets: 3, 7, 14 days; default 7) - Weekly: keep one per calendar week (presets: 1, 2, 4 weeks; default 4) - Monthly: keep one per calendar month (presets: 1, 3, 6 months; default 1) Pruning sorts backups newest-first and applies each tier's cutoff, keeping only the newest entry per ISO week/month bucket. The Instance Settings General page now shows three preset selectors (no icon, matches existing page design). Remove Database icon import.
35 lines
952 B
TypeScript
35 lines
952 B
TypeScript
export {
|
|
createDb,
|
|
getPostgresDataDirectory,
|
|
ensurePostgresDatabase,
|
|
inspectMigrations,
|
|
applyPendingMigrations,
|
|
reconcilePendingMigrationHistory,
|
|
type MigrationState,
|
|
type MigrationHistoryReconcileResult,
|
|
migratePostgresIfEmpty,
|
|
type MigrationBootstrapResult,
|
|
type Db,
|
|
} from "./client.js";
|
|
export {
|
|
getEmbeddedPostgresTestSupport,
|
|
startEmbeddedPostgresTestDatabase,
|
|
type EmbeddedPostgresTestDatabase,
|
|
type EmbeddedPostgresTestSupport,
|
|
} from "./test-embedded-postgres.js";
|
|
export {
|
|
runDatabaseBackup,
|
|
runDatabaseRestore,
|
|
formatDatabaseBackupResult,
|
|
type BackupRetentionPolicy,
|
|
type RunDatabaseBackupOptions,
|
|
type RunDatabaseBackupResult,
|
|
type RunDatabaseRestoreOptions,
|
|
} from "./backup-lib.js";
|
|
export {
|
|
createEmbeddedPostgresLogBuffer,
|
|
formatEmbeddedPostgresError,
|
|
} from "./embedded-postgres-error.js";
|
|
export { issueRelations } from "./schema/issue_relations.js";
|
|
export * from "./schema/index.js";
|