We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0edae83 commit d67de2bCopy full SHA for d67de2b
scripts/migrations/src/migrations/20241029T120000_initial.ts
@@ -313,7 +313,11 @@ export async function up(db: Kysely<any>): Promise<void> {
313
314
// eslint-disable-next-line @typescript-eslint/no-explicit-any
315
export async function down(db: Kysely<any>): Promise<void> {
316
+ const schema = getSchemaName(db.schema);
317
+ const ref = (name: string): RawBuilder<unknown> => sql.table(`${schema}.${name}`);
318
+
319
// Drop everything in reverse order
320
+ await sql`drop function if exists ${ref("search_projects")}`.execute(db);
321
await db.schema.dropTable("legacy_projects").execute();
322
await db.schema.dropTable("donations").execute();
323
await db.schema.dropTable("applications_payouts").execute();
0 commit comments