Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

cannot be cast automatically to type integer laravel

public function up()
{
    DB::statement('ALTER TABLE job_listings ALTER COLUMN 
                  company_id TYPE integer USING (company_id)::integer');
}
 
PREVIOUS NEXT
Tagged: #cast #automatically #type #integer #laravel
ADD COMMENT
Topic
Name
4+6 =