Initial commit — eLegal Software monorepo

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Leon Serfaty
2026-04-26 02:42:42 -04:00
co-authored by Claude Sonnet 4.6
commit 0700d54225
160 changed files with 22771 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
import path from 'node:path';
import { fileURLToPath } from 'node:url';
import dotenv from 'dotenv';
const __dirname = path.dirname(fileURLToPath(import.meta.url));
dotenv.config({ path: path.resolve(__dirname, '../../../.env') });
import { migrate } from 'drizzle-orm/node-postgres/migrator';
import { getDb, getPool } from './index';
async function main() {
console.log('Running migrations...');
await migrate(getDb(), { migrationsFolder: path.resolve(__dirname, '../migrations') });
console.log('Migrations complete.');
await getPool().end();
}
main().catch((err) => {
console.error(err);
process.exit(1);
});