Review funkt

This commit is contained in:
2026-08-09 21:56:00 +00:00
parent f522ae9953
commit fe9dfa4519
11366 changed files with 2335077 additions and 97 deletions

View File

@@ -0,0 +1,24 @@
/**
* A single, ordered schema migration. The `.sql` file is the source of truth;
* `version` is the monotonically increasing schema version recorded in the
* `migration` ledger table once applied.
*/
export interface Migration {
/** Monotonically increasing schema version (1, 2, 3, …). */
version: number;
/** Human-readable name (matches the `.sql` filename without extension). */
name: string;
/** Loads this migration's SQL from its `.sql` file. */
load(): string;
}
/**
* The ordered list of migrations bundled with this version of BullMQ. Append a
* new entry (never edit or reorder existing ones) whenever the schema changes.
*/
export declare const MIGRATIONS: readonly Migration[];
/**
* The highest schema version this BullMQ build knows how to produce. Compared
* against the version recorded in the database to decide whether to migrate
* (database older), no-op (equal), or refuse to run (database newer).
*/
export declare const LATEST_SCHEMA_VERSION: number;