-
-
Notifications
You must be signed in to change notification settings - Fork 391
Open
Labels
readyReady for implementationReady for implementationtype: enhancementwork: backendRelated to Python, Django, and simple SQLRelated to Python, Django, and simple SQL
Milestone
Description
Problem
Currently, the column type-changing functionality in the DB layer is hidden inside of a large, complex msar.alter_columns
function. This is clean(ish) code, but it's difficult to debug and work with the inputs and outputs of this function.
Proposed solution
We should create a function with the signature:
msar.change_column_type(
tab_id regclass,
col_id smallint,
new_typ regtype,
typ_options jsonb,
cast_options jsonb
) RETURNS void
We should then use this function in place of current logic within the msar.alter_columns
function.
Metadata
Metadata
Assignees
Labels
readyReady for implementationReady for implementationtype: enhancementwork: backendRelated to Python, Django, and simple SQLRelated to Python, Django, and simple SQL