@roostorg/db-migrator 1.0.8 → 1.0.9
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@roostorg/db-migrator",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"description": "CLI tool for managing database migrations and seeding. Designed for modern scalable systems.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -15,11 +15,15 @@
|
|
|
15
15
|
"files": [
|
|
16
16
|
"build"
|
|
17
17
|
],
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "https://github.com/roostorg/coop",
|
|
21
|
+
"directory": "migrator"
|
|
22
|
+
},
|
|
18
23
|
"author": "Roostorg",
|
|
19
24
|
"license": "ISC",
|
|
20
25
|
"dependencies": {
|
|
21
26
|
"@total-typescript/ts-reset": "^0.5.1",
|
|
22
|
-
"@types/umzug": "^2.3.3",
|
|
23
27
|
"@types/yargs": "^17.0.24",
|
|
24
28
|
"cassandra-driver": "^4.8.0",
|
|
25
29
|
"sequelize": "^6.32.1",
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
// NB: Snowflake migrations should use raw queries, in case Sequelize doesn't
|
|
4
|
-
// translate the query correctly. Also, Snowflake only supports 1 SQL statement
|
|
5
|
-
// per API call. So Snowflake migrations should use sequential, raw `query` calls.
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* @param {{ context: import("sequelize").QueryInterface }} context
|
|
9
|
-
*/
|
|
10
|
-
exports.up = async function ({ context }) {
|
|
11
|
-
const query = context.sequelize.query.bind(context.sequelize);
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* @param {{ context: import("sequelize").QueryInterface }} context
|
|
16
|
-
*/
|
|
17
|
-
exports.down = async function ({ context }) {
|
|
18
|
-
const query = context.sequelize.query.bind(context.sequelize);
|
|
19
|
-
};
|