fix(db): add production migrations and configure prodMigrations for sqlite in payload config
This commit is contained in:
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,9 @@
|
||||
import * as migration_20260826_005622_init from './20260826_005622_init';
|
||||
|
||||
export const migrations = [
|
||||
{
|
||||
up: migration_20260826_005622_init.up,
|
||||
down: migration_20260826_005622_init.down,
|
||||
name: '20260826_005622_init'
|
||||
},
|
||||
];
|
||||
@@ -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