From be68e45a13246e279ef72a37fe4a310073c3d4bf Mon Sep 17 00:00:00 2001 From: Troels Liebe Bentsen Date: Wed, 1 Oct 2014 03:03:54 +0200 Subject: [PATCH] fix naming of table --- .../migrations/2014_09_30_103529_add_timesheets.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/database/migrations/2014_09_30_103529_add_timesheets.php b/app/database/migrations/2014_09_30_103529_add_timesheets.php index b2eb453dcf78..e84029c8f81d 100644 --- a/app/database/migrations/2014_09_30_103529_add_timesheets.php +++ b/app/database/migrations/2014_09_30_103529_add_timesheets.php @@ -71,7 +71,7 @@ class AddTimesheets extends Migration { $t->increments('id'); $t->unsignedInteger('user_id'); $t->unsignedInteger('account_id')->index(); - $t->unsignedInteger('timesheet_source_id'); + $t->unsignedInteger('timesheet_event_source_id'); $t->unsignedInteger('timesheet_id')->nullable()->index(); $t->unsignedInteger('project_id')->nullable()->index(); $t->unsignedInteger('project_code_id')->nullable()->index(); @@ -97,12 +97,12 @@ class AddTimesheets extends Migration { $t->foreign('account_id')->references('id')->on('accounts'); $t->foreign('user_id')->references('id')->on('users')->onDelete('cascade'); - $t->foreign('timesheet_source_id')->references('id')->on('timesheets')->onDelete('cascade'); + $t->foreign('timesheet_event_source_id')->references('id')->on('timesheet_event_sources')->onDelete('cascade'); $t->unique( array('timesheet_source_id', 'uid') ); }); - Schema::create('timesheet_sources', function($t) { + Schema::create('timesheet_event_sources', function($t) { $t->increments('id'); $t->unsignedInteger('user_id'); $t->unsignedInteger('account_id')->index(); @@ -111,7 +111,7 @@ class AddTimesheets extends Migration { $t->string('name'); $t->string('url'); - $t->enum('type', array('ical', 'googlexml')); + $t->enum('type', array('ical', 'googlejson')); $t->string('owner'); $t->foreign('account_id')->references('id')->on('accounts');