summaryrefslogtreecommitdiffstats
path: root/backend/migrations
diff options
context:
space:
mode:
authorJan Tuomi <jan.tuomi@eficode.com>2020-02-05 11:35:03 +0200
committerJan Tuomi <jan.tuomi@eficode.com>2020-02-05 11:35:03 +0200
commit2011d3f6f9938825a36670779fa0d7894bda338f (patch)
tree8b1c073a4329432f1287ba50b90401b380b9301d /backend/migrations
parenta5ae2653d8ccdaf00270c0c8c8a30b88d7955114 (diff)
Implement session tokens securely
Diffstat (limited to 'backend/migrations')
-rw-r--r--backend/migrations/20200201145548_password-salt.js11
1 files changed, 11 insertions, 0 deletions
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');
+ });
+};