@secustor/backstage-plugin-renovate-backend 0.1.1 → 0.1.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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @secustor/backstage-plugin-renovate-backend
2
2
 
3
+ ## 0.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 98796af: Publish migrations
8
+
3
9
  ## 0.1.1
4
10
 
5
11
  ### Patch Changes
@@ -0,0 +1,40 @@
1
+ // @ts-check
2
+
3
+ /**
4
+ * @param {import('knex').Knex} knex
5
+ */
6
+ exports.up = async function up(knex) {
7
+ await knex.schema.createTable('reports', table => {
8
+ table.comment('Table containing Renovate reports');
9
+ table
10
+ .string('task_id')
11
+ .notNullable()
12
+ .unique()
13
+ .comment('unique id of the Repository reoccurring task');
14
+ table
15
+ .time('last_updated')
16
+ .notNullable()
17
+ .comment('Time when the last report has been pushed');
18
+ table
19
+ .text('host')
20
+ .notNullable()
21
+ .comment('host of the git service e.g. github.com');
22
+ table
23
+ .text('repository')
24
+ .notNullable()
25
+ .comment(
26
+ 'organization or full group with repository e.g. "myOrg/myRepository" for github',
27
+ );
28
+ table
29
+ .json('report')
30
+ .notNullable()
31
+ .comment('Report of this repository as JSON blob');
32
+ });
33
+ };
34
+
35
+ /**
36
+ * @param {import('knex').Knex} knex
37
+ */
38
+ exports.down = async function down(knex) {
39
+ await knex.schema.dropTable('reports');
40
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@secustor/backstage-plugin-renovate-backend",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "main": "dist/index.cjs.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "commonjs",
@@ -58,6 +58,8 @@
58
58
  "supertest": "^6.2.4"
59
59
  },
60
60
  "files": [
61
- "dist"
61
+ "dist",
62
+ "migrations/**/*.{js,d.ts}",
63
+ "config.d.ts"
62
64
  ]
63
65
  }