-
Notifications
You must be signed in to change notification settings - Fork 1
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
cigrid-ui-412 new column types #74
Conversation
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.
Looks mainly like formatting, and some table changes.
Seems the alembic downgrade reverses everything introduced by the upgrade in case it is needed.
Looks good!
op.alter_column("user", "email", existing_type=mysql.VARCHAR(length=128), nullable=False) | ||
op.drop_index("email", table_name="user") | ||
op.drop_index("google_id", table_name="user") | ||
op.create_index(op.f("ix_user_email"), "user", ["email"], unique=True) |
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.
Just for me to understand, this makes a link between user, email and then generates an index over that?
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.
It creates and index for the email
column in the user
table
Changed
Steps to consider while deploying
Review:
This version is a: