tortoise / tortoise/tortoise-orm

Add versioning feature for models

Open
#1,363 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
5.6k
Forks
516
Avg merge
2d 21h
Merged PRs (30d)
9

Description

Is your feature request related to a problem? Please describe.
I would like to have a way to maintain the version history of the models built in Tortoise, currently I have to create different models to keep the "changes" and put code that checks the changes in every possible place.

Describe the solution you'd like
Similar to https://github.com/corridor/sqlalchemy-history

Describe alternatives you've considered
Going back to SQLAlchemy just for the reason above.

Additional context
Add any other context about the feature request here.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the requested behavior in sqlalchemy-history and compare it with Tortoise's model handling. No files, tests, entry points, or concrete acceptance criteria are named, so clarify version-history semantics and the expected model/API behavior before implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.