Function DatabaseConnector->create_table

Definitions

sources/database.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.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: N/A

Parameters

Name Type Default Set Range Description
$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: autodetect)
$skip_fulltext_key_check boolean False N/A N/A Whether to skip checking if keys are appropriate for any auto-created fulltext indices