@dbos-inc/dbos-sdk 0.10.16-preview → 0.10.21-preview

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,14 +1,18 @@
1
1
  const { Knex } = require("knex");
2
2
 
3
3
  exports.up = async function(knex) {
4
- return knex.schema.createTable('dbos_hello', table => {
4
+ await knex.schema.createTable('dbos_hello', table => {
5
5
  table.text('name').primary();
6
+ table.integer('greet_count').defaultTo(0);
7
+ });
8
+
9
+ return knex.schema.createTable('dbos_greetings', table => {
6
10
  table.text('greeting_name');
7
11
  table.text('greeting_note_content');
8
- table.integer('greet_count').defaultTo(0);
9
12
  });
10
13
  };
11
14
 
12
15
  exports.down = async function(knex) {
16
+ await knex.schema.dropTable('dbos_greetings');
13
17
  return knex.schema.dropTable('dbos_hello');
14
18
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dbos-inc/dbos-sdk",
3
- "version": "0.10.16-preview",
3
+ "version": "0.10.21-preview",
4
4
  "description": "A Typescript framework built on the database",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -35,6 +35,7 @@
35
35
  "@types/pg": "^8.11.0",
36
36
  "@types/supertest": "^2.0.12",
37
37
  "@types/uuid": "^9.0.8",
38
+ "@types/validator": "^13.11.9",
38
39
  "@typescript-eslint/eslint-plugin": "^6.7.2",
39
40
  "@typescript-eslint/parser": "^6.7.2",
40
41
  "eslint": "^8.49.0",
@@ -65,6 +66,7 @@
65
66
  "reflect-metadata": "^0.1.13",
66
67
  "serialize-error": "8.1.0",
67
68
  "uuid": "^9.0.0",
69
+ "validator": "^13.11.0",
68
70
  "winston": "^3.10.0",
69
71
  "yaml": "^2.3.1"
70
72
  },