Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher-Li committed Dec 22, 2023
1 parent 9660273 commit 1840add
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ export async function up(knex: Knex): Promise<void> {
return knex
.schema
.alterTable('trading_rewards', (table) => {
// 27 is the max precision and 18 is scale, which means 9 digits before the decimal point and 18 after
// 27 is the max precision and 18 is scale, which means 9 digits before the decimal point
// and 18 after
table.decimal('amount', 27, 18).notNullable().alter();
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ export async function up(knex: Knex): Promise<void> {
return knex
.schema
.alterTable('wallets', (table) => {
// 27 is the max precision and 18 is scale, which means 9 digits before the decimal point and 18 after
// 27 is the max precision and 18 is scale, which means 9 digits before the decimal point
// and 18 after
table.decimal('totalTradingRewards', 27, 18).notNullable().alter();
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ export async function up(knex: Knex): Promise<void> {
return knex
.schema
.alterTable('trading_reward_aggregations', (table) => {
// 27 is the max precision and 18 is scale, which means 9 digits before the decimal point and 18 after
// 27 is the max precision and 18 is scale, which means 9 digits before the decimal point
// and 18 after
table.decimal('amount', 27, 18).notNullable().alter();
});
}
Expand Down

0 comments on commit 1840add

Please sign in to comment.