laravel创建一个存储过程

Laravel框架
366
0
0
2022-04-13
public function up() 
{    
    DB::unprepared('CREATE PROCEDURE my_procedure(IN param INT(10)) BEGIN /* here your SP code */ END'); 
} 

public function down() 
{ 
    DB::unprepared('DROP PROCEDURE IF EXISTS my_procedure'); 
}