From 169cd4338190f5b7b714b2a680618549ad6e10f9 Mon Sep 17 00:00:00 2001 From: andrevv Date: Wed, 5 Jan 2011 18:50:41 +0200 Subject: [PATCH] Roles name are notblank --- ipf/auth/models.yml | 1 + ipf/auth/models/_generated/BaseRole.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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'); -- 2.49.0