koishijs / koishi

Cross-platform chatbot framework made with love
https://koishi.chat
MIT License
4.53k stars 246 forks source link

Feature: Database Model 添加更多数据类型支持 #1333

Closed modcrafts closed 6 months ago

modcrafts commented 10 months ago

Describe the problem related to the feature request

想要在数据库中存储BIGINT类型的数字 原有的 integer length 无法超过11, 导致现有数据类型无法存储更大的数字

Describe the solution you'd like

在database.extend方法中增加更多的数据类型支持,例如 bigint 等

ctx.database.extend('a', {
  long_number: 'bigint',
})

Describe alternatives you've considered

No response

Additional context

No response

shigma commented 6 months ago

现已支持。