Answers for "migration default value atual date"

PHP
3

laravel migration add datetime column with default

$table->timestamp('column_name')->useCurrent();
Posted by: Guest on November-27-2020
3

laravel migration default value

$table->increments('id');
            $table->string('name');
            $table->string('url');
            $table->string('country');
            $table->tinyInteger('status')->default('1');
            $table->timestamps();
Posted by: Guest on July-20-2021

Code answers related to "migration default value atual date"

Browse Popular Code Answers by Language