Skip to content

Commit 4974d3a

Browse files
committed
Added down migration
Signed-off-by: Sanjay Babu <sanjaytkbabu@gmail.com>
1 parent 48eba1e commit 4974d3a

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

app/src/db/migrations/20260105000000_050-remove-developed-in-bc.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,14 @@ export async function up(knex: Knex): Promise<void> {
1313
);
1414
}
1515

16-
export async function down(): Promise<void> {}
16+
export async function down(knex: Knex): Promise<void> {
17+
return (
18+
Promise.resolve()
19+
// Add is_developed_in_bc column to housing_project
20+
.then(() =>
21+
knex.schema.alterTable('housing_project', function (table) {
22+
table.text('is_developed_in_bc');
23+
})
24+
)
25+
);
26+
}

0 commit comments

Comments
 (0)