|
@@ -13,7 +13,7 @@ use Illuminate\Support\Facades\Schema;
|
|
*/
|
|
*/
|
|
class OrdersProductProcess extends Model
|
|
class OrdersProductProcess extends Model
|
|
{
|
|
{
|
|
- protected $table = "orders_product_process";
|
|
|
|
|
|
+ protected $table = "orders_product_bom_process";
|
|
const CREATED_AT = 'crt_time';
|
|
const CREATED_AT = 'crt_time';
|
|
const UPDATED_AT = 'upd_time';
|
|
const UPDATED_AT = 'upd_time';
|
|
protected $dateFormat = 'U';
|
|
protected $dateFormat = 'U';
|
|
@@ -61,7 +61,7 @@ class OrdersProductProcess extends Model
|
|
private function createTable($table){
|
|
private function createTable($table){
|
|
if(! empty($table) && ! Schema::hasTable($table)){
|
|
if(! empty($table) && ! Schema::hasTable($table)){
|
|
//执行建表语句
|
|
//执行建表语句
|
|
- DB::statement('create table '. $table .' like orders_product_process');
|
|
|
|
|
|
+ DB::statement('create table '. $table .' like orders_product_bom_process');
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|