@takaro/db 0.0.5 → 0.0.7

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.
@@ -0,0 +1,3 @@
1
+ import { Knex } from 'knex';
2
+ export declare function up(knex: Knex): Promise<void>;
3
+ export declare function down(_knex: Knex): Promise<void>;
@@ -0,0 +1,7 @@
1
+ export async function up(knex) {
2
+ await knex.table('permission').where('permission', 'READ_GAMESERVERS').delete();
3
+ }
4
+ export async function down(_knex) {
5
+ // No down migration...
6
+ }
7
+ //# sourceMappingURL=20240718121004-delete-read-gameservers-perm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"20240718121004-delete-read-gameservers-perm.js","sourceRoot":"","sources":["../../../src/migrations/sql/20240718121004-delete-read-gameservers-perm.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,KAAK,UAAU,EAAE,CAAC,IAAU;IACjC,MAAM,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,KAAK,CAAC,YAAY,EAAE,kBAAkB,CAAC,CAAC,MAAM,EAAE,CAAC;AAClF,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,IAAI,CAAC,KAAW;IACpC,uBAAuB;AACzB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takaro/db",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "description": "An opinionated data layer",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",
@@ -0,0 +1,9 @@
1
+ import { Knex } from 'knex';
2
+
3
+ export async function up(knex: Knex): Promise<void> {
4
+ await knex.table('permission').where('permission', 'READ_GAMESERVERS').delete();
5
+ }
6
+
7
+ export async function down(_knex: Knex): Promise<void> {
8
+ // No down migration...
9
+ }