From 8afa93c70838839e7053af326991682ea3deff41 Mon Sep 17 00:00:00 2001 From: rui hildt Date: Sun, 23 Aug 2020 16:04:06 +0200 Subject: [PATCH] Change default password and possible_date type --- README.md | 2 +- data/migrations/20200502193352_possible_date.js | 2 +- data/seeds/1 - accounts.js | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 746a587..f1f4cf7 100644 --- a/README.md +++ b/README.md @@ -63,4 +63,4 @@ Running this will add some accounts along with some meetings. | Liza | Emile | Jack | Cynthia | Celine | | :--------------- | :---------------- | :--------------- | :------------------ | :----------------- | | liza@example.com | emile@example.com | jack@example.com | cynthia@example.com | celine@example.com | -| liza-password | emile-password | jack-password | cynthia-password | celine-password | +| password | password | password | password | password | diff --git a/data/migrations/20200502193352_possible_date.js b/data/migrations/20200502193352_possible_date.js index fc59151..da737e2 100644 --- a/data/migrations/20200502193352_possible_date.js +++ b/data/migrations/20200502193352_possible_date.js @@ -6,7 +6,7 @@ exports.up = (knex) => { .foreign('meeting_id') .references('meeting.id') .onDelete('cascade'); - table.date('possible_date').notNullable(); + table.string('possible_date').notNullable(); table.timestamps(true, true); }); }; diff --git a/data/seeds/1 - accounts.js b/data/seeds/1 - accounts.js index 24188ab..383a476 100644 --- a/data/seeds/1 - accounts.js +++ b/data/seeds/1 - accounts.js @@ -10,7 +10,7 @@ exports.seed = function (knex) { { username: 'liza', email: 'liza@example.com', - password: 'liza-password', + password: 'password', timezone: 'Europe/Brussels', earliest_time: '09:30', latest_time: '22:00', @@ -18,7 +18,7 @@ exports.seed = function (knex) { { username: 'emile', email: 'emile@example.com', - password: 'emile-password', + password: 'password', timezone: 'America/New_York', earliest_time: '09:00', latest_time: '20:00', @@ -26,7 +26,7 @@ exports.seed = function (knex) { { username: 'jack', email: 'jack@example.com', - password: 'jack-password', + password: 'password', timezone: 'Asia/Kolkata', earliest_time: '10:30', latest_time: '17:00', @@ -34,7 +34,7 @@ exports.seed = function (knex) { { username: 'cynthia', email: 'cynthia@example.com', - password: 'cynthia-password', + password: 'password', timezone: 'Europe/Brussels', earliest_time: '06:30', latest_time: '12:00', @@ -42,7 +42,7 @@ exports.seed = function (knex) { { username: 'celine', email: 'celine@example.com', - password: 'celine-password', + password: 'password', timezone: 'Europe/Brussels', earliest_time: '10:30', latest_time: '20:00',