Skip to content

Commit 0c69f2a

Browse files
committed
update next
1 parent eefa555 commit 0c69f2a

File tree

3 files changed

+74
-73
lines changed

3 files changed

+74
-73
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
"lucia": "^2.7.7",
7474
"lucide-react": "^0.314.0",
7575
"luxon": "^3.5.0",
76-
"next": "^14.2.12",
76+
"next": "^14.2.16",
7777
"nuqs": "^1.19.1",
7878
"ohash": "^1.1.4",
7979
"papaparse": "^5.4.1",

pnpm-lock.yaml

Lines changed: 59 additions & 59 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

setup-database.js

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,25 +33,26 @@ function checkForNeededMigrations() {
3333
}
3434
}
3535

36-
async function handleMigrations() {
37-
/**
38-
* This function checks if the database is in a state where the workaround is needed.
39-
*
40-
* The workaround is needed when the database is not empty and the _prisma_migrations
41-
* table does not exist.
42-
*/
43-
async function shouldApplyWorkaround() {
44-
const tables = await prisma.$queryRaw`
36+
/**
37+
* This function checks if the database is in a state where the workaround is needed.
38+
*
39+
* The workaround is needed when the database is not empty and the _prisma_migrations
40+
* table does not exist.
41+
*/
42+
async function shouldApplyWorkaround() {
43+
const tables = await prisma.$queryRaw`
4544
SELECT table_name
4645
FROM information_schema.tables
4746
WHERE table_schema = 'public' AND table_type = 'BASE TABLE'`;
4847

49-
const databaseNotEmpty = tables.length > 0;
50-
const migrationsTableExists = tables.some(table => table.table_name === '_prisma_migrations');
48+
const databaseNotEmpty = tables.length > 0;
49+
const migrationsTableExists = tables.some(table => table.table_name === '_prisma_migrations');
5150

5251

53-
return !migrationsTableExists && databaseNotEmpty;
54-
}
52+
return !migrationsTableExists && databaseNotEmpty;
53+
}
54+
55+
async function handleMigrations() {
5556

5657
try {
5758
if (await shouldApplyWorkaround()) {

0 commit comments

Comments
 (0)