Add bridge migrations
This commit is contained in:
parent
e05fdef4ad
commit
2c43e81436
14 changed files with 847 additions and 7 deletions
|
|
@ -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,
|
||||
}),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue