Change migration and seeds from time to datetime
This commit is contained in:
@@ -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);
|
||||
});
|
||||
};
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user