Skip to content

Commit fc242fe

Browse files
committed
fix: alertTable
1 parent b95a9b0 commit fc242fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/migrations/20210122184357_users_index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import * as Knex from 'knex';
22

33
export async function up(knex: Knex): Promise<void> {
4-
knex.schema.alterTable('users', function (t) {
4+
return knex.schema.alterTable('users', function (t) {
55
t.unique(['user_id']);
66
t.index(['user_id', 'lang']);
77
});
88
}
99

1010
export async function down(knex: Knex): Promise<void> {
11-
knex.schema.alterTable('users', function (t) {
11+
return knex.schema.alterTable('users', function (t) {
1212
t.dropUnique(['user_id']);
1313
t.dropIndex(['user_id', 'lang']);
1414
});

0 commit comments

Comments
 (0)