Comments (3)
Thank you for your feedback, I will try to reproduce and confirm this problem in the future. The solution you provided is great. If possible, you can submit a PR according to this idea. After I confirm the problem, I can merge it directly.
from thinkjs.
Many thanks.
I realize that a simpler fix for lib/schema.js (line 75) is to ignore item.dflt_value
and set item.default
to the empty string ''
, as done in think-model-mysql and think-model-postgresql.
It results in letting the native SQLite driver set the default value, which might be a more desirable behavior, and avoids parsing the SQLite syntax.
I plan to submit a PR with this solution.
from thinkjs.
It has been confirmed locally that there is indeed this problem, thank you very much.
Your issue and problem-solving ideas are very clear and correct, and your understanding of ThinkJS is also in place
[email protected]
released, thanks for your feedback and fix commits.
from thinkjs.
Related Issues (20)
- 自己封装的一个netSocket,无法正常获取websocket通道
- 请问多进程之间的数据如何共享?
- distinct貌似有bug HOT 1
- 有个接口文档中忘记写了。
- 大佬,你好,看到了你的部署thinkjs到vercel的文章了,这个vercel怎么和mysql连接起来,有推荐的文章吗?谢谢 HOT 1
- 无法在Object原型上添加方法 HOT 3
- 如何禁用 ESLINT 检测功能 HOT 2
- Ubuntu server 22.04.01 执行安装 npm install -g think-cli 后 提示 [email protected]: Please upgrade to version 7 or higher. HOT 8
- 官网打不开了,更新一下ssl HOT 1
- 找不到名称“think”。找不到命名空间“think”。 HOT 2
- 找不到命名空间“think”。
- thinkjs 2.2 websocket无法连接成功
- 请问ThinkJS 底层依赖的库有必要升级吗? HOT 9
- think-logger 最新的1.3.1版本只能保存今天和昨天的日志两个文件 HOT 9
- 怎么设置请求超时时间? HOT 4
- 使用教程里的Dockerfile部署后访问接口404 Not found的问题 HOT 1
- 希望能在请求里输出请求id HOT 2
- 彻底凉了!!!
- 上传大文件超时问题如何解决? || How to solve the timeout problem of uploading large files? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from thinkjs.