DB paths working on mac now
This commit is contained in:
1 parent
43f67e0739
commit
4e577c1da8
4 files changed
+13
-8
No files matched your search
+4
-1
@@ -62,7 +62,10 @@ export function initializeDatabase(): BetterSQLite3Database<typeof schema> & {
|
||||
|
||||
try {
|
||||
// Run migrations programmatically
|
||||
const migrationsFolder = path.join(process.cwd(), "drizzle");
|
||||
|
||||
const migrationsFolder = path.join(__dirname, "..", "..", "drizzle");
|
||||
|
||||
console.log("MIGRATIONS FOLDER INITIALIZE", migrationsFolder);
|
||||
|
||||
// Verify migrations folder exists
|
||||
if (!fs.existsSync(migrationsFolder)) {
|
||||
|
||||
Reference in new issue
Block a user