Add migration to fix subtasκ ordering (#554)
* Add migration to fix subtasκ ordering * Fix test issues
This commit is contained in:
parent
1008130e2c
commit
61ef6d7ac0
4 changed files with 123 additions and 23 deletions
|
|
@ -139,6 +139,11 @@ module.exports = (sequelize) => {
|
|||
key: 'id',
|
||||
},
|
||||
},
|
||||
order: {
|
||||
type: DataTypes.INTEGER,
|
||||
allowNull: true,
|
||||
comment: 'Order position for subtasks within a parent task',
|
||||
},
|
||||
completed_at: {
|
||||
type: DataTypes.DATE,
|
||||
allowNull: true,
|
||||
|
|
@ -162,6 +167,10 @@ module.exports = (sequelize) => {
|
|||
{
|
||||
fields: ['parent_task_id'],
|
||||
},
|
||||
{
|
||||
name: 'tasks_parent_task_id_order',
|
||||
fields: ['parent_task_id', 'order'],
|
||||
},
|
||||
],
|
||||
}
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue