mirror of
https://github.com/A-Minos/nonebot-plugin-tetris-stats.git
synced 2026-03-05 05:36:54 +08:00
🐛 修复 postgresql 标识符大于63字符的错误 (#545)
* 🗃️ 自定义表名 * ➕ 添加开发依赖 nonebot-plugin-orm[postgresql] * 🗃️ postgresql 跳过所有旧迁移脚本 * 🗃️ 修正方言 * 🗃️ 添加迁移脚本 * 🚨 auto fix by pre-commit hooks * 🚨 添加一个 noqa( --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -65,6 +65,8 @@ class PydanticType(TypeDecorator):
|
||||
|
||||
|
||||
class Bind(MappedAsDataclass, Model):
|
||||
__tablename__ = 'nb_t_bind'
|
||||
|
||||
id: Mapped[int] = mapped_column(init=False, primary_key=True)
|
||||
user_id: Mapped[int] = mapped_column(index=True)
|
||||
game_platform: Mapped[GameType] = mapped_column(String(32))
|
||||
@@ -72,6 +74,8 @@ class Bind(MappedAsDataclass, Model):
|
||||
|
||||
|
||||
class TriggerHistoricalDataV2(MappedAsDataclass, Model):
|
||||
__tablename__ = 'nb_t_trigger_hist_v2'
|
||||
|
||||
id: Mapped[int] = mapped_column(init=False, primary_key=True)
|
||||
trigger_time: Mapped[datetime] = mapped_column(DateTime)
|
||||
session_persist_id: Mapped[int]
|
||||
|
||||
Reference in New Issue
Block a user