Skip to content

Commit 2bad588

Browse files
committed
feat(api): add "id" column to legal-document-version-user-acceptances table
1 parent e39a040 commit 2bad588

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
const TABLE_NAME = 'legal-document-version-user-acceptances';
2+
const COLUMN_NAME = 'id';
3+
4+
/**
5+
* @param { import("knex").Knex } knex
6+
* @returns { Promise<void> }
7+
*/
8+
const up = async function (knex) {
9+
await knex.schema.table(TABLE_NAME, function (table) {
10+
table.increments(COLUMN_NAME).primary();
11+
});
12+
};
13+
14+
/**
15+
* @param { import("knex").Knex } knex
16+
* @returns { Promise<void> }
17+
*/
18+
const down = async function (knex) {
19+
await knex.schema.table(TABLE_NAME, function (table) {
20+
table.dropColumn(COLUMN_NAME);
21+
});
22+
};
23+
24+
export { down, up };

0 commit comments

Comments
 (0)