Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Laravel Migration - Update Enum Options

DB::statement("ALTER TABLE users CHANGE COLUMN permissions permissions ENUM('admin', 'user', 'candidate') NOT NULL DEFAULT 'user'");
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Laravel #Migration #Update #Enum #Options
ADD COMMENT
Topic
Name
1+4 =