tortoise / tortoise/tortoise-orm

Ability to have table without primary key (TimescaleDB hypertable support)

Open
#1,142 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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.
It'd be nice if there was a way to get tortoise to work with TimescaleDB hypertables

Describe the solution you'd like
Ability to create tables without a primary key

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

No files or tests are named. Start by tracing how Tortoise creates tables and enforces primary keys for PostgreSQL, then compare that path with the requirements for TimescaleDB hypertables. Done means a supported way to create a table without a primary key, with appropriate coverage for the affected schema behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
postgresql, python
Domain
databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.