fix(db): add production migrations and configure prodMigrations for sqlite in payload config
This commit is contained in:
@@ -14,6 +14,7 @@ import { Company } from './globals/Company'
|
||||
import { Navigation } from './globals/Navigation'
|
||||
|
||||
import { seed } from './seed'
|
||||
import { migrations } from './migrations'
|
||||
|
||||
const filename = fileURLToPath(import.meta.url)
|
||||
const dirname = path.dirname(filename)
|
||||
@@ -37,6 +38,7 @@ export default buildConfig({
|
||||
client: {
|
||||
url: process.env.DATABASE_URI || 'file:./dev.db',
|
||||
},
|
||||
prodMigrations: migrations,
|
||||
}),
|
||||
email: mailAdapter(),
|
||||
onInit: async (payload) => {
|
||||
|
||||
Reference in New Issue
Block a user