mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 22:28:51 +01:00
Reduced user/space name setting field length to 100chars
This commit is contained in:
parent
937fb55b94
commit
3cdc0b7996
@ -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',
|
||||
|
@ -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'),
|
||||
);
|
||||
}
|
||||
|
@ -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',
|
||||
|
@ -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'),
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user