mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-09-20 08:21:34 +02:00
Disable truncation
This commit is contained in:
parent
090f0c9c55
commit
6e59fc85df
@ -27,13 +27,13 @@ class ImportTimesheetData extends Command {
|
|||||||
|
|
||||||
// TODO: Populate with own test data until test data has been created
|
// TODO: Populate with own test data until test data has been created
|
||||||
// Truncate the tables
|
// Truncate the tables
|
||||||
$this->info("Truncate tables");
|
/*$this->info("Truncate tables");
|
||||||
DB::statement('SET FOREIGN_KEY_CHECKS=0;');
|
DB::statement('SET FOREIGN_KEY_CHECKS=0;');
|
||||||
DB::table('projects')->truncate();
|
DB::table('projects')->truncate();
|
||||||
DB::table('project_codes')->truncate();
|
DB::table('project_codes')->truncate();
|
||||||
DB::table('timesheet_event_sources')->truncate();
|
DB::table('timesheet_event_sources')->truncate();
|
||||||
DB::table('timesheet_events')->truncate();
|
DB::table('timesheet_events')->truncate();
|
||||||
DB::statement('SET FOREIGN_KEY_CHECKS=1;');
|
DB::statement('SET FOREIGN_KEY_CHECKS=1;'); */
|
||||||
|
|
||||||
if (!Project::find(1)) {
|
if (!Project::find(1)) {
|
||||||
$this->info("Import old project codes");
|
$this->info("Import old project codes");
|
||||||
@ -206,7 +206,7 @@ class ImportTimesheetData extends Command {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
//$this->info("Save event: ".$event->summary);
|
$this->info("Save event: ".$event->summary);
|
||||||
//if($event->uid == '2nvv4qjnlc293vq3h2833uslhc@google.com') {
|
//if($event->uid == '2nvv4qjnlc293vq3h2833uslhc@google.com') {
|
||||||
//var_dump($event);
|
//var_dump($event);
|
||||||
$event->save();
|
$event->save();
|
||||||
|
Loading…
Reference in New Issue
Block a user