Skip to content

Commit 15521b3

Browse files
committed
Use BIGINT for reconstructedEventsCount
1 parent f0b61c7 commit 15521b3

2 files changed

Lines changed: 42 additions & 1 deletion

File tree

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/**
2+
* @license
3+
* Copyright CERN and copyright holders of ALICE O2. This software is
4+
* distributed under the terms of the GNU General Public License v3 (GPL
5+
* Version 3), copied verbatim in the file "COPYING".
6+
*
7+
* See http://alice-o2.web.cern.ch/license for full licensing information.
8+
*
9+
* In applying this license CERN does not waive the privileges and immunities
10+
* granted to it by virtue of its status as an Intergovernmental Organization
11+
* or submit itself to any jurisdiction.
12+
*/
13+
14+
'use strict';
15+
16+
/** @type {import('sequelize-cli').Migration} */
17+
module.exports = {
18+
async up (queryInterface, Sequelize) {
19+
/**
20+
* Add altering commands here.
21+
*
22+
* Example:
23+
* await queryInterface.createTable('users', { id: Sequelize.INTEGER });
24+
*/
25+
await queryInterface.changeColumn('data_pass_versions', 'reconstructed_events_count', {
26+
type: Sequelize.BIGINT,
27+
});
28+
},
29+
30+
async down (queryInterface, Sequelize) {
31+
/**
32+
* Add reverting commands here.
33+
*
34+
* Example:
35+
* await queryInterface.dropTable('users');
36+
*/
37+
await queryInterface.changeColumn('data_pass_versions', 'reconstructed_events_count', {
38+
type: Sequelize.INTEGER,
39+
});
40+
}
41+
};

lib/database/models/dataPassVersion.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ module.exports = (sequelize) => {
3232
type: Sequelize.BIGINT,
3333
},
3434
reconstructedEventsCount: {
35-
type: Sequelize.INTEGER,
35+
type: Sequelize.BIGINT,
3636
},
3737
lastSeen: {
3838
type: Sequelize.INTEGER,

0 commit comments

Comments
 (0)