Add bridge migrations

This commit is contained in:
Darren Clarke 2024-04-23 10:31:26 +02:00
parent e05fdef4ad
commit 2c43e81436
14 changed files with 847 additions and 7 deletions

View file

@ -16,7 +16,7 @@ export const addGraphileJob = async (jobInfo: GraphileJob) => {
// await db.insertInto("graphile_worker.jobs").values(jobInfo).execute();
};
interface Database {
export interface Database {
User: {
id: string;
name: string | null;
@ -93,6 +93,7 @@ export const db = new KyselyAuth<Database>({
pool: new Pool({
host: process.env.DATABASE_HOST,
database: process.env.DATABASE_NAME,
port: parseInt(process.env.DATABASE_PORT!),
user: process.env.DATABASE_USER,
password: process.env.DATABASE_PASSWORD,
}),