-
-
Notifications
You must be signed in to change notification settings - Fork 338
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
Replace column index usage with attnums and Column model id
#839
Comments
I think the |
Marking as ready since the prerequisite work has been merged. |
@kgodey Should these be part of the |
@silentninja nice catch, I moved the broken down issues to |
This is done. |
Problem
Column index that is being used now is not robust and has few bugs related to its usage. For example
db.constraints.operations.select.get_column_constraints
will break if columns have been deleted, this comment explains the whyattnums
are robust identifiersProposed solution
PR #658 introduces the Column model which uses attnum, a robust alternate to column index. Hence column model
id
should be used at the service layer andattnum
should be used in the place of column index at the data layer(db module)We need to make at least the following changes:
column_index
from MathesarColumn class #996/tables/
api should reference column usingid
instead ofcolumn_index
#1167Additional context
Column
Django model with support for display options #658The text was updated successfully, but these errors were encountered: