Function __global->_helper_create_table

Definitions

sources/database_helper.php

  • Create a table with the given name and the given array of field name to type mappings.If a field type starts '*', then it is part of that field's key. If it starts '?', then it is an optional field.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: N/A

Parameters

Name Type Default Set Range Description
$this_ref object required parameter N/A N/A Link to the real database object
$table_name ID_TEXT required parameter N/A N/A The table name
$fields array required parameter N/A N/A The fields
$skip_size_check boolean False N/A N/A Whether to skip the size check for the table (only do this for addon modules that don't need to support anything other than MySQL)
$skip_null_check boolean False N/A N/A Whether to skip the check for NULL string fields
$save_bytes ?boolean False N/A N/A Whether to use lower-byte table storage, with trade-offs of not being able to support all unicode characters; use this if key length is an issue (null: auto-detect if needed). Pass as true/false for normal install code to make intentions explicit, maintenance code may use auto-detect.
$skip_fulltext_key_check boolean False N/A N/A Whether to skip checking if keys are appropriate for any auto-created fulltext indices