Function DatabaseRepair->db_type_to_cms_type

Definitions

sources/database_repair.php

  • Convert raw database field type to software field type.Update _database_integrity automated test when changing this.
  • Visibility: private
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: string

Parameters

Name Type Default Set Range Description
$field_name string required parameter N/A N/A Field name
$type_raw string required parameter N/A N/A Field type (MySQL-style)
$is_auto_increment boolean required parameter N/A N/A Auto-increment
$is_primary boolean required parameter N/A N/A Primary key
$null_ok boolean required parameter N/A N/A Null-acceptable

Return

  • Field type (software-style)
  • Type: string
  • Set: N/A
  • Range: N/A