feat: add headless t3 connect setup for SSH hosts (#3749)
Co-authored-by: Claude Fable 5 <[email protected]> Co-authored-by: Julius Marminge <[email protected]> Co-authored-by: codex <[email protected]>
This commit is contained in:
35 files changed
+3018
-145
No files matched your search
@@ -123,15 +123,11 @@ export interface RunMigrationsOptions {
|
||||
export const runMigrations = Effect.fn("runMigrations")(function* ({
|
||||
toMigrationInclusive,
|
||||
}: RunMigrationsOptions = {}) {
|
||||
yield* Effect.log(
|
||||
toMigrationInclusive === undefined
|
||||
? "Running all migrations..."
|
||||
: `Running migrations 1 through ${toMigrationInclusive}...`,
|
||||
);
|
||||
const executedMigrations = yield* run({ loader: makeMigrationLoader(toMigrationInclusive) });
|
||||
yield* Effect.log("Migrations ran successfully").pipe(
|
||||
Effect.annotateLogs({ migrations: executedMigrations.map(([id, name]) => `${id}_${name}`) }),
|
||||
);
|
||||
const migrations = executedMigrations.map(([id, name]) => `${id}_${name}`);
|
||||
yield* migrations.length === 0
|
||||
? Effect.logDebug("Database schema is current")
|
||||
: Effect.log("Migrations ran successfully").pipe(Effect.annotateLogs({ migrations }));
|
||||
return executedMigrations;
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user