Skip to content

Commit

Permalink
chore: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
sabineschaller committed Aug 15, 2024
1 parent f01fd23 commit 6b43cef
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @param { import("knex").Knex } knex
* @returns { Promise<void> }
*/
exports.up = function(knex) {
exports.up = function (knex) {
// delete any existing duplicates per wallet address
knex.raw(`
DELETE FROM walletAddressKeys
Expand All @@ -11,19 +11,19 @@ exports.up = function(knex) {
FROM walletAddressKeys
GROUP BY walletAddressId, kid, x
);
`);
`)

return knex.schema.alterTable('walletAddressKeys', (table) => {
table.unique(['walletAddressId', 'kid', 'x']);
});
};
table.unique(['walletAddressId', 'kid', 'x'])
})
}

/**
* @param { import("knex").Knex } knex
* @returns { Promise<void> }
*/
exports.down = function(knex) {
exports.down = function (knex) {
return knex.schema.alterTable('walletAddressKeys', (table) => {
table.dropUnique(['walletAddressId', 'kid', 'x']);
});
};
table.dropUnique(['walletAddressId', 'kid', 'x'])
})
}

0 comments on commit 6b43cef

Please sign in to comment.