@axiosleo/orm-mysql 0.10.2 → 0.10.3

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/README.md CHANGED
@@ -107,7 +107,7 @@ async function insertExample() {
107
107
 
108
108
  // The insert operation will be changed to the update operation if the uuid already exists
109
109
  row = await query.keys('uuid').insert({
110
- uuid: 'uuid-string',
110
+ uuid: 'uuid-string', // uuid is unique index
111
111
  name: "Joe",
112
112
  age: 18,
113
113
  })
package/bin/orm-mysql.js CHANGED
@@ -9,7 +9,7 @@ const app = new App({
9
9
  name: 'MySQL ORM CLI',
10
10
  desc: 'migrate, model, seed, etc.',
11
11
  bin: 'orm-mysql',
12
- version: '0.10.2',
12
+ version: '0.10.3',
13
13
  commands_dir: path.join(__dirname, '../commands'),
14
14
  });
15
15
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axiosleo/orm-mysql",
3
- "version": "0.10.2",
3
+ "version": "0.10.3",
4
4
  "description": "MySQL ORM tool",
5
5
  "keywords": [
6
6
  "mysql",
package/src/migration.js CHANGED
@@ -96,7 +96,7 @@ async function init(context) {
96
96
  });
97
97
  let res = await _execSQL(conn, builder.sql);
98
98
  conn.end();
99
- if (res.serverStatus !== 2) {
99
+ if (res.serverStatus !== 2 && res.serverStatus !== 16386) {
100
100
  printer.error('create migration table failed.');
101
101
  process.exit(1);
102
102
  }