drogonframework/drogon

Migrations

Open

#2,319 创建于 2025年5月23日

在 GitHub 查看
 (6 评论) (1 反应) (0 负责人)C++ (10,462 star) (1,014 fork)batch import
enhancementgood first issue

描述

I've been exploring different web frameworks, and one thing I truly value about Drogon is its excellent performance. However, I believe there’s room for improvement in the area of database migration tools.

In Rails, for example, commands like rails db:setup are incredibly convenient—it creates the database, loads the schema, and seeds it with initial data. Furthermore, with a single command like rails generate model Author name:string email:string, you can generate both the model and its corresponding migration files automatically.

With Drogon, the alternatives I found typically involve using third-party libraries that rely heavily on raw SQL. This approach can be less maintainable, especially when targeting multiple database systems, as SQL syntax and behavior can vary significantly between databases.

I’d like to contribute to improving this aspect of Drogon, starting with support for PostgreSQL. Once a solid foundation is established, it could be extended to support other databases as well.

贡献者指南