@@ -58,7 +58,7 @@ module.exports = {
58
58
}
59
59
} , { transaction } ) ;
60
60
61
- await queryInterface . sequelize . query ( `SELECT create_hypertable('transaction_events', by_range( 'timestamp') );` , { transaction } ) ;
61
+ await queryInterface . sequelize . query ( `SELECT create_hypertable('transaction_events', 'timestamp');` , { transaction } ) ;
62
62
await queryInterface . sequelize . query ( `
63
63
CREATE INDEX "transaction_events_workspaceId_timestamp" ON transaction_events("workspaceId", timestamp DESC);
64
64
` , { transaction } ) ;
@@ -115,7 +115,7 @@ module.exports = {
115
115
allowNull : false
116
116
}
117
117
} , { transaction } ) ;
118
- await queryInterface . sequelize . query ( `SELECT create_hypertable('token_transfer_events', by_range( 'timestamp') );` , { transaction } ) ;
118
+ await queryInterface . sequelize . query ( `SELECT create_hypertable('token_transfer_events', 'timestamp');` , { transaction } ) ;
119
119
await queryInterface . sequelize . query ( `
120
120
CREATE INDEX "token_transfer_events_workspaceId_timestamp" ON transaction_events("workspaceId", timestamp DESC);
121
121
` , { transaction } ) ;
@@ -168,7 +168,7 @@ module.exports = {
168
168
allowNull : true
169
169
} ,
170
170
} , { transaction } ) ;
171
- await queryInterface . sequelize . query ( `SELECT create_hypertable('token_balance_change_events', by_range( 'timestamp') );` , { transaction } ) ;
171
+ await queryInterface . sequelize . query ( `SELECT create_hypertable('token_balance_change_events', 'timestamp');` , { transaction } ) ;
172
172
await queryInterface . sequelize . query ( `
173
173
CREATE INDEX "token_balance_change_events_workspaceId_timestamp" ON token_balance_change_events("workspaceId", timestamp DESC);
174
174
` , { transaction } ) ;
0 commit comments