Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support specifying a table comment #1240

Open
booqoffsky opened this issue Dec 21, 2023 · 0 comments
Open

Support specifying a table comment #1240

booqoffsky opened this issue Dec 21, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@booqoffsky
Copy link

booqoffsky commented Dec 21, 2023

I would like to be able to specify a comment on the table in the model, which will get into the database through migrations.

For example, it might look like this:

class MyModel(ormar.Model):

    class Meta:
        comment = "My Super Comment"
        

The 'comment' can be used in the populate_meta_sqlalchemy_table_if_required function as the 'comment' keyword argument when calling sqlalchemy.Table

@booqoffsky booqoffsky added the enhancement New feature or request label Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant