1
1
mirror of https://github.com/namibia/awesome-cheatsheets.git synced 2024-12-22 10:08:54 +00:00

docs(laravel): add table options

This commit is contained in:
Julien Le Coupanec 2020-03-23 16:07:39 +01:00
parent 45bf363110
commit 8580ca1973

View File

@ -262,6 +262,16 @@ uuid // The field under validation must be a v
* https://laravel.com/docs/5.8/errors * https://laravel.com/docs/5.8/errors
********************************************************************************************/ ********************************************************************************************/
/********************************************************************************************
* COLLECTION TABLE OPTIONS
* https://laravel.com/docs/5.7/migrations#creating-tables
********************************************************************************************/
$table->engine = 'InnoDB'; // Specify the table storage engine (MySQL).
$table->charset = 'utf8'; // Specify a default character set for the table (MySQL).
$table->collation = 'utf8_unicode_ci'; // Specify a default collation for the table (MySQL).
$table->temporary(); // Create a temporary table (except SQL Server).
/******************************************************************************************** /********************************************************************************************
* COLLECTION COLUMN TYPES * COLLECTION COLUMN TYPES
* https://laravel.com/docs/5.8/migrations#generating-migrations * https://laravel.com/docs/5.8/migrations#generating-migrations