Reduced user/space name setting field length to 100chars

This commit is contained in:
Lucas Bartholemy 2014-05-21 15:12:18 +02:00
parent 937fb55b94
commit 3cdc0b7996
4 changed files with 6 additions and 6 deletions

View File

@ -9,7 +9,7 @@ class m140507_171527_create_settings_table extends EDbMigration {
'id' => 'pk',
'space_id' => 'int(10)',
'module_id' => 'varchar(100) DEFAULT NULL',
'name' => 'varchar(255)',
'name' => 'varchar(100)',
'value' => 'varchar(255) DEFAULT NULL',
'created_at' => 'datetime DEFAULT NULL',
'created_by' => 'int(11) DEFAULT NULL',

View File

@ -44,8 +44,8 @@ class SpaceSetting extends HActiveRecord {
public function rules() {
return array(
array('space_id, created_by, updated_by', 'numerical', 'integerOnly' => true),
array('module_id', 'length', 'max' => 100),
array('name, value', 'length', 'max' => 255),
array('module_id, name', 'length', 'max' => 100),
array('value', 'length', 'max' => 255),
array('created_at, updated_at', 'safe'),
);
}

View File

@ -9,7 +9,7 @@ class m140507_150421_create_settings_table extends EDbMigration {
'id' => 'pk',
'user_id' => 'int(10)',
'module_id' => 'varchar(100) DEFAULT NULL',
'name' => 'varchar(255)',
'name' => 'varchar(100)',
'value' => 'varchar(255) DEFAULT NULL',
'created_at' => 'datetime DEFAULT NULL',
'created_by' => 'int(11) DEFAULT NULL',

View File

@ -44,8 +44,8 @@ class UserSetting extends HActiveRecord {
public function rules() {
return array(
array('user_id, created_by, updated_by', 'numerical', 'integerOnly' => true),
array('module_id', 'length', 'max' => 100),
array('name, value', 'length', 'max' => 255),
array('module_id, name', 'length', 'max' => 100),
array('value', 'length', 'max' => 255),
array('created_at, updated_at', 'safe'),
);
}