From 6e59fc85dfb6091cd92aa33a435b4eb74b63d996 Mon Sep 17 00:00:00 2001 From: Troels Liebe Bentsen Date: Tue, 7 Oct 2014 00:00:57 +0200 Subject: [PATCH] Disable truncation --- app/commands/ImportTimesheetData.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/commands/ImportTimesheetData.php b/app/commands/ImportTimesheetData.php index 087de0c520a3..bd7586be705d 100644 --- a/app/commands/ImportTimesheetData.php +++ b/app/commands/ImportTimesheetData.php @@ -27,13 +27,13 @@ class ImportTimesheetData extends Command { // TODO: Populate with own test data until test data has been created // Truncate the tables - $this->info("Truncate tables"); + /*$this->info("Truncate tables"); DB::statement('SET FOREIGN_KEY_CHECKS=0;'); DB::table('projects')->truncate(); DB::table('project_codes')->truncate(); DB::table('timesheet_event_sources')->truncate(); DB::table('timesheet_events')->truncate(); - DB::statement('SET FOREIGN_KEY_CHECKS=1;'); + DB::statement('SET FOREIGN_KEY_CHECKS=1;'); */ if (!Project::find(1)) { $this->info("Import old project codes"); @@ -206,7 +206,7 @@ class ImportTimesheetData extends Command { } try { - //$this->info("Save event: ".$event->summary); + $this->info("Save event: ".$event->summary); //if($event->uid == '2nvv4qjnlc293vq3h2833uslhc@google.com') { //var_dump($event); $event->save();