Skip to content

Commit f7e1a86

Browse files
committed
Added down migration
Signed-off-by: Sanjay Babu <sanjaytkbabu@gmail.com>
1 parent 65c2c93 commit f7e1a86

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
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+
}

frontend/tests/unit/components/housing/project/ProjectForm.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ describe('ProjectForm.vue', () => {
267267
expect(notDisabled).toEqual([]);
268268
const elements = wrapper.findAll('.p-disabled');
269269
expect(wrapper.vm.$props?.editable).toBe(false);
270-
expect(elements.length).toBe(21);
270+
expect(elements.length).toBe(20);
271271
});
272272

273273
it('geojson download btn not visible when no geojson', async () => {

0 commit comments

Comments
 (0)