From: andrevv Date: Wed, 5 Jan 2011 16:50:41 +0000 (+0200) Subject: Roles name are notblank X-Git-Tag: 0.5~345 X-Git-Url: https://git.andy128k.dev/?a=commitdiff_plain;h=169cd4338190f5b7b714b2a680618549ad6e10f9;p=ipf.git Roles name are notblank --- diff --git a/ipf/auth/models.yml b/ipf/auth/models.yml index 1717ffd..dd4c353 100644 --- a/ipf/auth/models.yml +++ b/ipf/auth/models.yml @@ -53,6 +53,7 @@ Role: name: unique: true type: string(255) + notblank: true relations: Permissions: class: Permission diff --git a/ipf/auth/models/_generated/BaseRole.php b/ipf/auth/models/_generated/BaseRole.php index cf1f9fe..a32dd81 100644 --- a/ipf/auth/models/_generated/BaseRole.php +++ b/ipf/auth/models/_generated/BaseRole.php @@ -8,7 +8,7 @@ abstract class BaseRole extends IPF_ORM_Record public function setTableDefinition() { $this->setTableName('auth_role'); - $this->hasColumn('name', 'string', 255, array('unique' => true, 'type' => 'string', 'length' => '255')); + $this->hasColumn('name', 'string', 255, array('unique' => true, 'notblank' => true, 'type' => 'string', 'length' => '255')); $this->option('type', 'INNODB'); $this->option('collate', 'utf8_unicode_ci');