summaryrefslogtreecommitdiffstats
path: root/backend/migrations/20200201145548_password-salt.js
diff options
context:
space:
mode:
Diffstat (limited to 'backend/migrations/20200201145548_password-salt.js')
-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');
+ });
+};