Changes between Version 4 and Version 5 of REDCap sql fields


Ignore:
Timestamp:
01/31/14 10:19:08 (11 years ago)
Author:
Nick Holden
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • REDCap sql fields

    v4 v5  
    4646value VARCHAR(100),
    4747label VARCHAR(100),
     48sort_order TINYINT,
    4849INDEX reference (project,form,field),
     50INDEX sort_order_1 (sort_order),
     51INDEX sort_order_2 (sort_order,label),
    4952KEY value_key (project,form,field,value),
    5053KEY label_key (project,form,field,label)
     
    9295}}}
    9396
     97=== Display order ===
     98
     99As per #173 (the first use case / ticket for SQL fields in our REDCap) Daisy asked to have one specific option (in this case 'Other') elevated to first in the list. This seems a generalisable requirement (e.g. country might well offer UK before an alphabetised list. Best way to deliver would be to have a 'sort order' column, and use that as the first order by column, reverting to alphabetical as a second order by column, if desired.
     100
     101Table definition above has been edited. Amendment in test.