Explorar el Código

added xsd:string to AclHelper::getChildHistTable

Piotr Labudda hace 9 años
padre
commit
7e222a7ec6
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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:integer': $sqlType = "int(11) NOT NULL DEFAULT 0"; break;
       case 'xsd:date': $sqlType = "date DEFAULT NULL"; 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: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"
       // 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
     if (!$sqlType && !empty($schema['@ref'])) $sqlType = "int(11) NOT NULL DEFAULT 0";// TODO: type from ref instance @primaryKey - mostly int