From 2011d3f6f9938825a36670779fa0d7894bda338f Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Wed, 5 Feb 2020 11:35:03 +0200 Subject: Implement session tokens securely --- backend/migrations/20200201145548_password-salt.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 backend/migrations/20200201145548_password-salt.js (limited to 'backend/migrations') diff --git a/backend/migrations/20200201145548_password-salt.js b/backend/migrations/20200201145548_password-salt.js new file mode 100644 index 0000000..217b02b --- /dev/null +++ b/backend/migrations/20200201145548_password-salt.js @@ -0,0 +1,11 @@ +exports.up = function(knex) { + return knex.schema.table('users', function(table) { + table.string('salt').notNullable(); + }); +}; + +exports.down = function(knex) { + return knex.schema.table('users', function(table) { + table.dropColumn('salt'); + }); +}; -- cgit v1.3