tortoise-orm icon indicating copy to clipboard operation
tortoise-orm copied to clipboard

[Bug] Failed to set schema for models.Model

Open deeklming opened this issue 1 year ago • 0 comments

Describe the bug Failed to set schema for models.Model in postgresql.

To Reproduce

from tortoise import fields, models
class Tt(models.Model):
    id = fields.IntField(primary_key=True)
    username = fields.CharField(max_length=20, unique=True)

    class Meta:
        schema = 'auth'

Expected behavior All tables are created in the public scheme of postgresql. Please check it.

deeklming avatar Jun 12 '24 13:06 deeklming