File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change
1
+ BEGIN ;
2
+
3
+ -- Remove automatically created indices
4
+ DROP INDEX IF EXISTS states_sort_key_index;
5
+
6
+ DROP INDEX IF EXISTS black_list_contract_tx_id_index;
7
+
8
+ DROP INDEX IF EXISTS errors_job_id_index;
9
+
10
+ COMMIT ;
11
+
12
+ VACUUM;
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ module.exports = {
26
26
t . string ( 'contract_tx_id' ) . index ( ) ;
27
27
t . jsonb ( 'evaluation_options' ) ;
28
28
t . jsonb ( 'sdk_config' ) ;
29
- t . string ( 'job_id' ) . index ( ) . unique ( ) ;
29
+ t . string ( 'job_id' ) . unique ( ) ;
30
30
t . string ( 'failure' ) . notNullable ( ) ;
31
31
t . timestamp ( 'timestamp' ) . defaultTo ( knex . fn . now ( ) ) ;
32
32
} ) ;
@@ -35,7 +35,7 @@ module.exports = {
35
35
const hasBlacklistTable = await knex . schema . hasTable ( 'black_list' ) ;
36
36
if ( ! hasBlacklistTable ) {
37
37
await knex . schema . createTable ( 'black_list' , function ( t ) {
38
- t . string ( 'contract_tx_id' ) . index ( ) . unique ( ) ;
38
+ t . string ( 'contract_tx_id' ) . unique ( ) ;
39
39
t . integer ( 'failures' ) ;
40
40
} ) ;
41
41
}
@@ -46,7 +46,7 @@ module.exports = {
46
46
t . string ( 'contract_tx_id' ) . unique ( ) ;
47
47
t . jsonb ( 'manifest' ) . notNullable ( ) ;
48
48
t . string ( 'bundle_tx_id' ) ;
49
- t . string ( 'sort_key' ) . index ( ) ;
49
+ t . string ( 'sort_key' ) ;
50
50
t . string ( 'signature' ) . notNullable ( ) ;
51
51
t . string ( 'state_hash' ) . notNullable ( ) ;
52
52
t . timestamp ( 'timestamp' ) . defaultTo ( knex . fn . now ( ) ) ;
You can’t perform that action at this time.
0 commit comments