Change migration and seeds from time to datetime

This commit is contained in:
2020-08-26 17:22:59 +02:00
parent ca1b0fe883
commit ad27d42144
8 changed files with 71 additions and 146 deletions

View File

@@ -6,7 +6,7 @@ exports.up = (knex) => {
table.string('password').notNullable();
table.string('timezone');
table.string('earliest_time');
table.string('latest_string');
table.string('latest_time');
table.timestamps(true, true);
});
};

View File

@@ -3,7 +3,7 @@ exports.up = (knex) => {
table.uuid('id').primary();
table.string('title').notNullable();
table.string('description');
table.time('start_time');
table.datetime('start_time');
table.integer('duration').notNullable();
table.boolean('status').notNullable();
table.string('password');

View File

@@ -17,8 +17,8 @@ exports.up = (knex) => {
.references('possible_date.id')
.onDelete('cascade');
table.boolean('preference').notNullable();
table.time('start_time').notNullable();
table.time('end_string').notNullable();
table.datetime('start_time').notNullable();
table.datetime('end_time').notNullable();
table.timestamps(true, true);
});
};