saltbo / zpan

A self-hosted cloud disk base on the cloud storage./ 一个基于云存储的网盘系统,用于自建私人网盘或企业网盘。
https://zpan.space
GNU General Public License v3.0
1.84k stars 239 forks source link

fix: storage update error #140

Closed 2hxst closed 3 years ago

2hxst commented 3 years ago

api: PUT /api/storages/:id error: Incorrect datetime value: '0000-00-00' for column 'created' at row 1

model.Storage created 字段添加 只读tag , 参考 https://gorm.io/docs/models.html#Field-Level-Permission

saltbo commented 3 years ago

其实你不用新开一个PR,force-push是可以直接同步到之前的PR #139 的。

codecov[bot] commented 3 years ago

Codecov Report

Merging #140 (b12c890) into master (057ad8e) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #140   +/-   ##
=======================================
  Coverage   27.00%   27.00%           
=======================================
  Files          15       15           
  Lines         548      548           
=======================================
  Hits          148      148           
  Misses        349      349           
  Partials       51       51           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 057ad8e...b12c890. Read the comment docs.

2hxst commented 3 years ago

其实你不用新开一个PR,force-push是可以直接同步到之前的PR #139 的。

好的,因为我回滚了,所以PR就关闭了