@prairielearn/migrations 1.2.1 → 1.2.2
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/CHANGELOG.md +8 -0
- package/dist/migrations/fixtures/20230407210430_insert_user.d.ts +1 -1
- package/dist/migrations/fixtures/20230407210430_insert_user.js +3 -2
- package/dist/migrations/fixtures/20230407210430_insert_user.js.map +1 -1
- package/package.json +4 -4
- package/src/migrations/fixtures/20230407210430_insert_user.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export default function migrate(): Promise<void>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const postgres_1 = require("@prairielearn/postgres");
|
|
4
|
-
|
|
4
|
+
async function migrate() {
|
|
5
5
|
await (0, postgres_1.queryAsync)("INSERT INTO users (name) VALUES ('Test User')", {});
|
|
6
|
-
}
|
|
6
|
+
}
|
|
7
|
+
exports.default = migrate;
|
|
7
8
|
//# sourceMappingURL=20230407210430_insert_user.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"20230407210430_insert_user.js","sourceRoot":"","sources":["../../../src/migrations/fixtures/20230407210430_insert_user.ts"],"names":[],"mappings":";;AAAA,qDAAoD;
|
|
1
|
+
{"version":3,"file":"20230407210430_insert_user.js","sourceRoot":"","sources":["../../../src/migrations/fixtures/20230407210430_insert_user.ts"],"names":[],"mappings":";;AAAA,qDAAoD;AAErC,KAAK,UAAU,OAAO;IACnC,MAAM,IAAA,qBAAU,EAAC,+CAA+C,EAAE,EAAE,CAAC,CAAC;AACxE,CAAC;AAFD,0BAEC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prairielearn/migrations",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
"mocha": "^10.2.0",
|
|
21
21
|
"ts-node": "^10.9.1",
|
|
22
22
|
"typescript": "^5.0.4",
|
|
23
|
-
"typescript-cp": "^0.1.
|
|
23
|
+
"typescript-cp": "^0.1.8"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@prairielearn/error": "^1.0.1",
|
|
27
27
|
"@prairielearn/logger": "^1.0.0",
|
|
28
|
-
"@prairielearn/named-locks": "^1.3.
|
|
29
|
-
"@prairielearn/postgres": "^1.
|
|
28
|
+
"@prairielearn/named-locks": "^1.3.2",
|
|
29
|
+
"@prairielearn/postgres": "^1.7.0",
|
|
30
30
|
"fs-extra": "^11.1.1",
|
|
31
31
|
"serialize-error": "^8.1.0",
|
|
32
32
|
"zod": "^3.21.4"
|