Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

laravel migration make column nullable

Schema::table('users', function($table)
{
    $table->string('name', 50)->nullable()->change();
});

This is the correct syntax to revert the migration:

$table->integer('user_id')->unsigned()->nullable(false)->change();
Comment

laravel migration table column nullable

$table->string(/*column name*/, /*size*/)->nullable(true);
Comment

PREVIOUS NEXT
Code Example
Javascript :: react bootstrap do you need to import 
Javascript :: Use jQuery in Console 
Javascript :: adding jquery from console 
Javascript :: count number of checkboxes in html jquery 
Javascript :: jquery latest version cdn 
Javascript :: three.js renderer background color 
Javascript :: javascript date first day of current month 
Javascript :: Uncaught ReferenceError: jsPDF is not defined 
Javascript :: javascript run something after x seconds 
Javascript :: angular JavaScript heap out of memory 
Javascript :: macos chrome disable web security 
Javascript :: how to reload page on button click in javascript 
Javascript :: npm run dev on different port 
Javascript :: exclude extension from filename javascript 
Javascript :: javascript replace newline 
Javascript :: js 1 second delay 
Javascript :: react native component at bottom center 
Javascript :: is string javascript 
Javascript :: material-ui textfield underline hide 
Javascript :: testng before class vs before test 
Javascript :: javascript style background color 
Javascript :: react native button round 
Javascript :: decimal parse thousand separator javascript 
Javascript :: p5 map function 
Javascript :: on enter key press react 
Javascript :: javascript float element right 
Javascript :: javascript how to check for an empty object 
Javascript :: how to run a vue js hello world app in vue version 3 
Javascript :: js match alphabet 
Javascript :: c# json get value by key 
ADD CONTENT
Topic
Content
Source link
Name
8+6 =