瀏覽代碼

added xsd:string to AclHelper::getChildHistTable

Piotr Labudda 9 年之前
父節點
當前提交
7e222a7ec6
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      SE/se-lib/Core/AclHelper.php

+ 1 - 0
SE/se-lib/Core/AclHelper.php

@@ -428,6 +428,7 @@ class Core_AclHelper {// Helper class for Acl
       case 'xsd:integer': $sqlType = "int(11) NOT NULL DEFAULT 0"; break;
       case 'xsd:date': $sqlType = "date DEFAULT NULL"; break;
       case 'xsd:decimal': $sqlType = "decimal(" . V::get('@totalDigits', 16, $schema) . ", " . V::get('@fractionDigits', 2, $schema) . ") NOT NULL DEFAULT 0"; break;
+      case 'xsd:string': $sqlType = "varchar(255) NOT NULL DEFAULT ''"; break;
       // TODO: type alias like enum fields: @type => "{$prefix}:{$field_name}Type"
     }
     if (!$sqlType && !empty($schema['@ref'])) $sqlType = "int(11) NOT NULL DEFAULT 0";// TODO: type from ref instance @primaryKey - mostly int