Okay so i'm trying to make some simple database schemas using Laravel 5.2 migrations. They're pretty basic for now. The issue is that the result table created does not reflect in mysql what I dictated in the schema builder. For example: creates the following table (ignore the picture after the table):
I'm pretty sure that If I wanted to allow nulls I should be using nullableTimestampts() also no default values and no "on update CURRENT TIMESTAMP" etc.
What am I missing here? The aritsan commands were pretty straightforward:
php artisan make:migration create_table_institutes --create=institutes
php artisan migrate
I am on Ubuntu 14.04, php7, Apache mysql Here is my seeding code:
DB::table('institutes')->insert([
'name' => 'Ncbi',
'base_curl' => 'eutils.ncbi.nlm.nih.gov/entrez/eutils/',
]);
->useCurrent()
for setting default values. – Bharat Geleda