diff --git a/database/seeders/LoincAnswerSeeder.php.stub b/database/seeders/LoincAnswerSeeder.php.stub new file mode 100644 index 0000000..e8be316 --- /dev/null +++ b/database/seeders/LoincAnswerSeeder.php.stub @@ -0,0 +1,27 @@ +file = base_path().'/database/seeders/csv/loinc_answer.csv'; + $this->tablename = config('satusehatintegration.loinc_answer_table_name'); + $this->delimiter = ';'; + } + + public function run() + { + // Recommended when importing larger CSVs + DB::disableQueryLog(); + + parent::run(); + } +} diff --git a/database/seeders/LoincSeeder.php.stub b/database/seeders/LoincSeeder.php.stub new file mode 100644 index 0000000..8163e22 --- /dev/null +++ b/database/seeders/LoincSeeder.php.stub @@ -0,0 +1,27 @@ +file = base_path().'/database/seeders/csv/loinc.csv'; + $this->tablename = config('satusehatintegration.loinc_table_name'); + $this->delimiter = ';'; + } + + public function run() + { + // Recommended when importing larger CSVs + DB::disableQueryLog(); + + parent::run(); + } +} diff --git a/database/seeders/csv/loinc_answers.csv.stub b/database/seeders/csv/loinc_answer.csv.stub similarity index 100% rename from database/seeders/csv/loinc_answers.csv.stub rename to database/seeders/csv/loinc_answer.csv.stub