@@ -126,9 +126,9 @@ describe('migration-v2.15.0-series-column-unique', () => {
126
126
it ( 'upgrade with duplicate series and no sequence' , async ( ) => {
127
127
// Add some entries to the Series table using the UUID for the ids
128
128
await queryInterface . bulkInsert ( 'Series' , [
129
- { id : series1Id , name : 'Series 1' , libraryId : library1Id , createdAt : new Date ( ) , updatedAt : new Date ( ) } ,
130
- { id : series2Id , name : 'Series 2' , libraryId : library2Id , createdAt : new Date ( ) , updatedAt : new Date ( ) } ,
131
- { id : series3Id , name : 'Series 3' , libraryId : library1Id , createdAt : new Date ( ) , updatedAt : new Date ( ) } ,
129
+ { id : series1Id , name : 'Series 1' , libraryId : library1Id , createdAt : new Date ( 7 ) , updatedAt : new Date ( 7 ) } ,
130
+ { id : series2Id , name : 'Series 2' , libraryId : library2Id , createdAt : new Date ( 7 ) , updatedAt : new Date ( 8 ) } ,
131
+ { id : series3Id , name : 'Series 3' , libraryId : library1Id , createdAt : new Date ( 7 ) , updatedAt : new Date ( 9 ) } ,
132
132
{ id : series1Id_dup , name : 'Series 1' , libraryId : library1Id , createdAt : new Date ( 0 ) , updatedAt : new Date ( 0 ) } ,
133
133
{ id : series3Id_dup , name : 'Series 3' , libraryId : library1Id , createdAt : new Date ( 0 ) , updatedAt : new Date ( 0 ) } ,
134
134
{ id : series1Id_dup2 , name : 'Series 1' , libraryId : library1Id , createdAt : new Date ( 0 ) , updatedAt : new Date ( 0 ) }
@@ -203,8 +203,8 @@ describe('migration-v2.15.0-series-column-unique', () => {
203
203
it ( 'upgrade with one book in two of the same series, both sequence are null' , async ( ) => {
204
204
// Create two different series with the same name in the same library
205
205
await queryInterface . bulkInsert ( 'Series' , [
206
- { id : series1Id , name : 'Series 1' , libraryId : library1Id , createdAt : new Date ( ) , updatedAt : new Date ( ) } ,
207
- { id : series2Id , name : 'Series 1' , libraryId : library1Id , createdAt : new Date ( ) , updatedAt : new Date ( ) }
206
+ { id : series1Id , name : 'Series 1' , libraryId : library1Id , createdAt : new Date ( 8 ) , updatedAt : new Date ( 20 ) } ,
207
+ { id : series2Id , name : 'Series 1' , libraryId : library1Id , createdAt : new Date ( 5 ) , updatedAt : new Date ( 10 ) }
208
208
] )
209
209
// Create a book that is in both series
210
210
await queryInterface . bulkInsert ( 'BookSeries' , [
@@ -236,8 +236,8 @@ describe('migration-v2.15.0-series-column-unique', () => {
236
236
it ( 'upgrade with one book in two of the same series, one sequence is null' , async ( ) => {
237
237
// Create two different series with the same name in the same library
238
238
await queryInterface . bulkInsert ( 'Series' , [
239
- { id : series1Id , name : 'Series 1' , libraryId : library1Id , createdAt : new Date ( ) , updatedAt : new Date ( ) } ,
240
- { id : series2Id , name : 'Series 1' , libraryId : library1Id , createdAt : new Date ( ) , updatedAt : new Date ( ) }
239
+ { id : series1Id , name : 'Series 1' , libraryId : library1Id , createdAt : new Date ( 5 ) , updatedAt : new Date ( 9 ) } ,
240
+ { id : series2Id , name : 'Series 1' , libraryId : library1Id , createdAt : new Date ( 5 ) , updatedAt : new Date ( 7 ) }
241
241
] )
242
242
// Create a book that is in both series
243
243
await queryInterface . bulkInsert ( 'BookSeries' , [
@@ -268,8 +268,8 @@ describe('migration-v2.15.0-series-column-unique', () => {
268
268
it ( 'upgrade with one book in two of the same series, both sequence are not null' , async ( ) => {
269
269
// Create two different series with the same name in the same library
270
270
await queryInterface . bulkInsert ( 'Series' , [
271
- { id : series1Id , name : 'Series 1' , libraryId : library1Id , createdAt : new Date ( ) , updatedAt : new Date ( ) } ,
272
- { id : series2Id , name : 'Series 1' , libraryId : library1Id , createdAt : new Date ( ) , updatedAt : new Date ( ) }
271
+ { id : series1Id , name : 'Series 1' , libraryId : library1Id , createdAt : new Date ( 1 ) , updatedAt : new Date ( 3 ) } ,
272
+ { id : series2Id , name : 'Series 1' , libraryId : library1Id , createdAt : new Date ( 2 ) , updatedAt : new Date ( 2 ) }
273
273
] )
274
274
// Create a book that is in both series
275
275
await queryInterface . bulkInsert ( 'BookSeries' , [
0 commit comments