These datatypes are the same. One is just an alias for another.
Apr 19, 2016
6
Level 2
Why use tinyInteger over boolean for migrations?
I noticed Taylor uses tinyInteger instead of boolean. Why would he not use the built in boolean?
As seen in create_users_table.php in Spark: $table->tinyInteger('uses_two_factor_auth')->default(0);
Level 50
I think @canfiax means 'Laravel has a boolean column type which is mapped to a tinyint on mysql, so why didn't Taylor use it?'. The answer being 'No idea - ask Taylor via twitter maybe' :-)
1 like
Please or to participate in this conversation.