@cumulus/db 11.1.2 → 12.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/migrations/20220126172008_files_granule_id_index.d.ts +1 -1
- package/dist/migrations/20220126172008_files_granule_id_index.js +7 -11
- package/package.json +9 -9
- package/dist/migrations/20220609024044_remove_files_granule_id_index.d.ts +0 -4
- package/dist/migrations/20220609024044_remove_files_granule_id_index.js +0 -12
|
@@ -1,20 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.down = exports.up = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
// A new ticket was added (CUMULUS-2962) to implement this instead. To ensure all deployed
|
|
9
|
-
// stacks reach the same migration state, this migration was updated to *not* add the index and
|
|
10
|
-
// the next migration in sequence was added to drop the index *if it exists*.
|
|
11
|
-
/* await knex.schema.table('files', (table) => {
|
|
12
|
-
table.index('granule_cumulus_id');
|
|
13
|
-
}); */
|
|
4
|
+
const up = async (knex) => {
|
|
5
|
+
await knex.schema.table('files', (table) => {
|
|
6
|
+
table.index('granule_cumulus_id');
|
|
7
|
+
});
|
|
14
8
|
};
|
|
15
9
|
exports.up = up;
|
|
16
10
|
const down = async (knex) => {
|
|
17
|
-
await knex.
|
|
11
|
+
await knex.schema.table('files', (table) => {
|
|
12
|
+
table.dropIndex('granule_cumulus_id');
|
|
13
|
+
});
|
|
18
14
|
};
|
|
19
15
|
exports.down = down;
|
|
20
16
|
//# sourceMappingURL=20220126172008_files_granule_id_index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cumulus/db",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.0.1",
|
|
4
4
|
"description": "Utilities for working with the Cumulus DB",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -26,15 +26,15 @@
|
|
|
26
26
|
"timeout": "5m"
|
|
27
27
|
},
|
|
28
28
|
"engines": {
|
|
29
|
-
"node": ">=
|
|
29
|
+
"node": ">=14.19.1"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@cumulus/aws-client": "
|
|
33
|
-
"@cumulus/common": "
|
|
34
|
-
"@cumulus/errors": "
|
|
35
|
-
"@cumulus/logger": "
|
|
36
|
-
"@cumulus/message": "
|
|
37
|
-
"@cumulus/types": "
|
|
32
|
+
"@cumulus/aws-client": "12.0.1",
|
|
33
|
+
"@cumulus/common": "12.0.1",
|
|
34
|
+
"@cumulus/errors": "12.0.1",
|
|
35
|
+
"@cumulus/logger": "12.0.1",
|
|
36
|
+
"@cumulus/message": "12.0.1",
|
|
37
|
+
"@cumulus/types": "12.0.1",
|
|
38
38
|
"crypto-random-string": "^3.2.0",
|
|
39
39
|
"is-valid-hostname": "1.0.2",
|
|
40
40
|
"knex": "0.95.15",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/uuid": "^8.0.0"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "9d038d8c4330b12dfe2763cbc850680599801edb"
|
|
50
50
|
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.down = exports.up = void 0;
|
|
4
|
-
const up = async (knex) => {
|
|
5
|
-
await knex.raw('DROP INDEX IF EXISTS files_granule_cumulus_id_index');
|
|
6
|
-
};
|
|
7
|
-
exports.up = up;
|
|
8
|
-
const down = async () => {
|
|
9
|
-
console.log('Warning - this migration cannot be rolled back as 20220126172008_files_granule_id_index.ts was retroactively removed');
|
|
10
|
-
};
|
|
11
|
-
exports.down = down;
|
|
12
|
-
//# sourceMappingURL=20220609024044_remove_files_granule_id_index.js.map
|