diff --git a/app/models/ca_site_pages.php b/app/models/ca_site_pages.php index 36e51b85b4..9c522f5d69 100644 --- a/app/models/ca_site_pages.php +++ b/app/models/ca_site_pages.php @@ -82,6 +82,13 @@ 'DISPLAY_FIELD' => array('ca_locales.name', 'ca_locales.language', 'ca_locales.country'), 'LABEL' => _t('Locale'), 'DESCRIPTION' => _t('Locale of page'), ), + 'rank' => array( + 'FIELD_TYPE' => FT_NUMBER, 'DISPLAY_TYPE' => DT_FIELD, + 'DISPLAY_WIDTH' => 10, 'DISPLAY_HEIGHT' => 1, + 'IS_NULL' => false, + 'DEFAULT' => '', + 'LABEL' => _t('Sort order'), 'DESCRIPTION' => _t('Sort order'), + ), 'access' => array( 'FIELD_TYPE' => FT_NUMBER, 'DISPLAY_TYPE' => DT_SELECT, 'DISPLAY_WIDTH' => 100, 'DISPLAY_HEIGHT' => 4, @@ -179,7 +186,7 @@ class ca_site_pages extends BundlableLabelableBaseModelWithAttributes { # If you want to order records arbitrarily, add a numeric field to the table and place # its name here. The generic list scripts can then use it to order table records. - protected $RANK = null; + protected $RANK = 'rank'; # ------------------------------------------------------ diff --git a/app/version.php b/app/version.php index cff3ce0e9b..6b78ee45b8 100644 --- a/app/version.php +++ b/app/version.php @@ -3,7 +3,7 @@ define('__CollectiveAccess__', '2.0'); # Schema revision - define('__CollectiveAccess_Schema_Rev__', 194); + define('__CollectiveAccess_Schema_Rev__', 195); # Release type define('__CollectiveAccess_Release_Type__', 'RELEASE');