@fleettools/db 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,23 @@
1
+ /**
2
+ * FleetTools Database Migrations
3
+ *
4
+ * Migration management for Drizzle schema.
5
+ */
6
+ import type { DrizzleDB } from './client.js';
7
+ /**
8
+ * Run all pending migrations
9
+ */
10
+ export declare function runMigrations(db: DrizzleDB): Promise<void>;
11
+ /**
12
+ * Get migration status
13
+ */
14
+ export declare function getMigrationStatus(db: DrizzleDB): Promise<{
15
+ current: string | null;
16
+ available: string[];
17
+ pending: string[];
18
+ }>;
19
+ /**
20
+ * Rollback to specific migration (simplified)
21
+ */
22
+ export declare function rollbackMigration(db: DrizzleDB, targetVersion: string): Promise<void>;
23
+ //# sourceMappingURL=migrations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"migrations.d.ts","sourceRoot":"","sources":["../src/migrations.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAG7C;;GAEG;AACH,wBAAsB,aAAa,CAAC,EAAE,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,CAQhE;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,EAAE,EAAE,SAAS,GAAG,OAAO,CAAC;IAC/D,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC,CAuCD;AAED;;GAEG;AACH,wBAAsB,iBAAiB,CACrC,EAAE,EAAE,SAAS,EACb,aAAa,EAAE,MAAM,GACpB,OAAO,CAAC,IAAI,CAAC,CASf"}