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
it's possible to change the table name for user/role/permission tables? #2158
Comments
What are you trying to accomplish? If you want to change the table name of the If you want to create a new table that only holds your custom columns, I would suggest creating your own class and making a 1-to-1 mapping to the However im still not really understanding why you would want to change the table name.... |
I want the entire user table to have a different name, while keeping the logic already there. |
By default the models/tables defined in flask_appbuilder/security/sqla/models.py have the
ab_
prefixI am trying to extend the data model (adding some columns) with a subclass - as suggested in Extending the User Model - but I also would like to change the table names, so
ab_user
will becameusers
.It's possible? if I naively set
I end with
sqlalchemy.exc.ArgumentError: Can't place __table_args__ on an inherited class with no table.
during the import of the moduleThe text was updated successfully, but these errors were encountered: