Skip to content

Commit

Permalink
Merge branch 'master' into issue-4096
Browse files Browse the repository at this point in the history
  • Loading branch information
emibloque committed May 9, 2019
2 parents 18e2292 + 71cfefd commit 82fb53b
Show file tree
Hide file tree
Showing 6 changed files with 87 additions and 99 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ feel free to ask us and community.
### Features

* deprecate column `readonly` option in favor of `update` and `insert` options ([#4035](https://github.com/typeorm/typeorm/pull/4035))
* support sql.js v1.0 ([#4104](https://github.com/typeorm/typeorm/issues/4104))
* added support for `orUpdate` in SQLlite ([#4097](https://github.com/typeorm/typeorm/pull/4097))

## 0.2.17 (2019-05-01)
Expand Down
6 changes: 3 additions & 3 deletions docs/zh_CN/decorator-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,9 @@ export class User {
- `width: number` - 列类型的显示宽度。 仅用于 [MySQL integer types](https://dev.mysql.com/doc/refman/5.7/en/integer-types.html)
- `onUpdate: string` - `ON UPDATE` 触发器。仅用于 [MySQL](https://dev.mysql.com/doc/refman/5.7/en/timestamp-initialization.html).
- `nullable: boolean` - 设置列值`NULL``NOT NULL`
默认值是 `nullable: false`.
- `readonly: boolean` - 指示"save"操作是否未更新列值。 这意味着只有在第一次插入对象时才能写入此值
默认值是 `false`
默认值是 `nullable: false`
- `update: boolean` - 指示"save"操作是否更新列值。如果为false,则只能在第一次插入对象时编写该值
默认值为"true"
- `select: boolean` - 定义在进行查询时是否默认隐藏此列。 设置为`false`时,列数据不会显示标准查询。 默认值`selecttrue`
- `default: string` - 添加数据库级列的`DEFAULT`值。
- `primary: boolean` - 将列标记为主列。 与`@PrimaryColumn`使用相同。
Expand Down
3 changes: 2 additions & 1 deletion docs/zh_CN/entities.md
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,8 @@ name: string;
- `width: number` - 列类型的显示范围。 仅用于[MySQL integer types](https://dev.mysql.com/doc/refman/5.7/en/integer-types.html)
- `onUpdate: string` - `ON UPDATE`触发器。 仅用于 [MySQL](https://dev.mysql.com/doc/refman/5.7/en/timestamp-initialization.html).
- `nullable: boolean` - 在数据库中使列`NULL``NOT NULL`。 默认情况下,列是`nullable:false`
- `readonly: boolean` - 指示`save`操作是否未更新列值。 这意味着只有在第一次插入对象时才能写入此值。 默认值为`false`
- `update: boolean` - 指示"save"操作是否更新列值。如果为false,则只能在第一次插入对象时编写该值。
默认值为"true"。
- `select: boolean` - 定义在进行查询时是否默认隐藏此列。 设置为`false`时,列数据不会显示标准查询。 默认情况下,列是`select:true`
- `default: string` - 添加数据库级列的`DEFAULT`值。
- `primary: boolean` - 将列标记为主要列。 使用方式和`@ PrimaryColumn`相同。
Expand Down

0 comments on commit 82fb53b

Please sign in to comment.