refactor(backend): simplify media schema and recording metadata

This commit is contained in:
2026-03-11 17:15:00 +00:00
parent 662d8d7b90
commit c6919d8174
18 changed files with 223 additions and 113 deletions

View File

@@ -0,0 +1,18 @@
import 'dotenv/config';
import { migrate } from 'drizzle-orm/node-postgres/migrator';
import { db, pool } from '../db/client';
const run = async (): Promise<void> => {
await migrate(db, { migrationsFolder: './drizzle' });
await pool.end();
console.log('Database migrations applied.');
};
run()
.then(() => process.exit(0))
.catch(async (error) => {
console.error('Failed to apply database migrations', error);
await pool.end().catch(() => undefined);
process.exit(1);
});