-
Notifications
You must be signed in to change notification settings - Fork 5
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
Create tables and migrations #17
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #17 +/- ##
============================================
+ Coverage 31.42% 79.77% +48.35%
============================================
Files 22 24 +2
Lines 245 544 +299
Branches 54 0 -54
============================================
+ Hits 77 434 +357
+ Misses 152 110 -42
+ Partials 16 0 -16
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.create_table('account', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the table names be singular or plural
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed to plural
__tablename__ = 'role' | ||
|
||
id = Column(db.Integer, primary_key=True, autoincrement=True) | ||
role_name = Column(db.String(50), nullable=False) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whats the role like ? not the keycloak role rite? can you add more comments here plz...
Following the result of https://docs.google.com/spreadsheets/d/1E1EH5Sq2W9Y0Qwpjbo6va7W9VTE_RNu9M5_pTCo4DoY/edit?gid=0#gid=0 from https://apps.nrs.gov.bc.ca/int/jira/browse/EPICSYSTEM-206
I created the tables and the migrations