• 请不要在回答技术问题时复制粘贴 AI 生成的内容
victimsss
V2EX  ›  程序员

被一个古早 bug 浪费了很久时间

  •  
  •   victimsss · May 28, 2024 · 2820 views
    This topic created in 892 days ago, the information mentioned may be changed or developed.
    一开始以为是 postgre 的问题,后来以为是 nestjs 的问题,最后怀疑是我的问题,心累。
    https://github.com/typeorm/typeorm/issues/4015
    6 replies  •  2024-05-28 18:04:03 +08:00
    twig
    twig
    May 28, 2024
    1
    💊 送您速效救心丸
    kingwrcy
    kingwrcy
    May 28, 2024
    2
    使用 prisma 吧
    RTSmile
    RTSmile
    May 28, 2024 via iPhone
    3
    @kingwrcy prisma 好像没有办法在代码里面运行迁移?
    kingwrcy
    kingwrcy
    May 28, 2024
    4
    @RTSmile 你为什么要在代码里运行迁移?上线之前先执行 npx prisma migrate deploy 就行了.
    victimsss
    victimsss
    OP
    May 28, 2024
    5
    @kingwrcy #2 已经在考虑了 👍
    victimsss
    victimsss
    OP
    May 28, 2024
    6
    @twig 早已习以为常😔
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2730 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 10:41 · PVG 18:41 · LAX 02:41 · JFK 05:41
    ♥ Do have faith in what you're doing.