Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM oven/bun:alpine AS deps
WORKDIR /app
COPY package.json bun.lock ./
COPY patches/ ./patches/
RUN bun install --frozen-lockfile --production

FROM oven/bun:alpine AS runner
Expand Down
13 changes: 13 additions & 0 deletions patches/drizzle-orm@0.45.2.patch
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,16 @@ index b2c2a77086503f751985bc6928d398c62cf79762..e3797057a3c1482063b534fdda1542f1
await session.execute(migrationTableCreate);
const dbMigrations = await session.all(
import_sql2.sql`select id, hash, created_at from ${import_sql2.sql.identifier(migrationsSchema)}.${import_sql2.sql.identifier(migrationsTable)} order by created_at desc limit 1`
diff --git a/pg-core/dialect.js b/pg-core/dialect.js
index 31a019cc0a6bc67303a745fdf9ad613e8fbdcb5f..0374dccd641bffe3ae77e22aad8d4bbf159a6f5d 100644
--- a/pg-core/dialect.js
+++ b/pg-core/dialect.js
@@ -51,7 +51,7 @@ class PgDialect {
created_at bigint
)
`;
- await session.execute(sql`CREATE SCHEMA IF NOT EXISTS ${sql.identifier(migrationsSchema)}`);
+ //await session.execute(sql`CREATE SCHEMA IF NOT EXISTS ${sql.identifier(migrationsSchema)}`);
await session.execute(migrationTableCreate);
const dbMigrations = await session.all(
sql`select id, hash, created_at from ${sql.identifier(migrationsSchema)}.${sql.identifier(migrationsTable)} order by created_at desc limit 1`