generated from liutk/owl-admin-base
main
parent
83dccf917b
commit
892dc51c15
|
|
@ -78,9 +78,6 @@ return [
|
|||
'prefix_indexes' => true,
|
||||
'strict' => true,
|
||||
'engine' => null,
|
||||
'options' => extension_loaded('pdo_mysql') ? array_filter([
|
||||
PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
|
||||
]) : [],
|
||||
],
|
||||
|
||||
'pgsql' => [
|
||||
|
|
|
|||
|
|
@ -17,6 +17,8 @@ class ArticleCategorySeeder extends Seeder
|
|||
public function run()
|
||||
{
|
||||
//老文章分类表
|
||||
|
||||
DB::connection('djc_mysql')->getPdo()->exec("SET NAMES 'utf8'");
|
||||
$oldCates = DB::connection('djc_mysql')->table('t_article_type')->get()->sortBy('pid');
|
||||
|
||||
$newCategories = [];
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ class KeywordDictSeeder extends Seeder
|
|||
*/
|
||||
public function run()
|
||||
{
|
||||
DB::connection('djc_mysql')->getPdo()->exec("SET NAMES 'utf8'");
|
||||
$oldDicts = DB::connection('djc_mysql')->table('t_data_dict')->get();
|
||||
|
||||
$newKeywords = [];
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ class PersonMoveSeeder extends Seeder
|
|||
public function run()
|
||||
{
|
||||
DB::table('person_changes')->truncate();
|
||||
|
||||
DB::connection('djc_mysql')->getPdo()->exec("SET NAMES 'utf8'");
|
||||
DB::connection('djc_mysql')->table('t_person_move')->orderBy('id', 'ASC')->chunk(1000, function($personMoves){
|
||||
$newlogs = [];
|
||||
if($personMoves->count() > 0){
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ class PersonSeeder extends Seeder
|
|||
{
|
||||
DB::table('persons')->truncate();
|
||||
|
||||
DB::connection('djc_mysql')->getPdo()->exec("SET NAMES 'utf8'");
|
||||
DB::connection('djc_mysql')->table('t_person')->orderBy('id', 'ASC')->chunk(100, function($persons){
|
||||
|
||||
// $newPersons = [];
|
||||
|
|
|
|||
Loading…
Reference in New Issue