Using drizzle in docker gives [i] No changes detected

Hello I have this drizzle.config.ts file, I tried running bun push but I get the [i] No changes detected prompt
import type {Config} from 'drizzle-kit';

export default {
out: "./drizzle",
schema: "./src/database/drizzle/schema.ts",
strict: true,
verbose: true,
driver: 'mysql2',
dbCredentials: {
host: process.env["MYSQL_HOST"]!,
user: process.env["MYSQL_USER"]!,
password: process.env["MYSQL_PASSWORD"]!,
database: process.env["MYSQL_DATABASE"]!,
},
} satisfies Config;
import type {Config} from 'drizzle-kit';

export default {
out: "./drizzle",
schema: "./src/database/drizzle/schema.ts",
strict: true,
verbose: true,
driver: 'mysql2',
dbCredentials: {
host: process.env["MYSQL_HOST"]!,
user: process.env["MYSQL_USER"]!,
password: process.env["MYSQL_PASSWORD"]!,
database: process.env["MYSQL_DATABASE"]!,
},
} satisfies Config;
root@abc596d3a4ba:/var/Bun# bun push
$ drizzle-kit push:mysql
drizzle-kit: v0.20.14
drizzle-orm: v0.30.4

No config path provided, using default path
Reading config file '/var/Bun/drizzle.config.ts'
Reading schema files:
/var/Bun/src/database/drizzle/schema.ts

[i] No changes detected
root@abc596d3a4ba:/var/Bun#
root@abc596d3a4ba:/var/Bun# bun push
$ drizzle-kit push:mysql
drizzle-kit: v0.20.14
drizzle-orm: v0.30.4

No config path provided, using default path
Reading config file '/var/Bun/drizzle.config.ts'
Reading schema files:
/var/Bun/src/database/drizzle/schema.ts

[i] No changes detected
root@abc596d3a4ba:/var/Bun#
I checked the path inside my image and it seems its correct
root@abc596d3a4ba:/var/Bun/src/database/drizzle# pwd
/var/Bun/src/database/drizzle
root@abc596d3a4ba:/var/Bun/src/database/drizzle# ls -la
total 44
drwxrwxrwx 1 root root 0 Apr 8 14:29 .
drwxrwxrwx 1 root root 0 Apr 8 14:29 ..
-rwxr-xr-x 1 root root 71 Apr 8 14:29 database.ts
-rwxr-xr-x 1 root root 44290 Apr 8 14:29 schema.ts
root@abc596d3a4ba:/var/Bun/src/database/drizzle#
root@abc596d3a4ba:/var/Bun/src/database/drizzle# pwd
/var/Bun/src/database/drizzle
root@abc596d3a4ba:/var/Bun/src/database/drizzle# ls -la
total 44
drwxrwxrwx 1 root root 0 Apr 8 14:29 .
drwxrwxrwx 1 root root 0 Apr 8 14:29 ..
-rwxr-xr-x 1 root root 71 Apr 8 14:29 database.ts
-rwxr-xr-x 1 root root 44290 Apr 8 14:29 schema.ts
root@abc596d3a4ba:/var/Bun/src/database/drizzle#
Any idea?
1 Reply
Huge Letters
Huge Letters6mo ago
try logging process.cwd() and readDir of schema folder maybe from node inside drizzle.config.ts - I think it would make it more clear if inside the image this path is correct or not sorry, since you're using bun so use their alternatives - pretty sure they have something similar as well also try checking what's inside of var/Bun/drizzle where your migrations are - perhaps your image already has them?
Want results from more Discord servers?
Add your server