Skip to content

Commit

Permalink
Make migrations use tracker connection
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioribeiro committed Nov 24, 2015
1 parent aeb561f commit 049fd3d
Show file tree
Hide file tree
Showing 28 changed files with 44 additions and 27 deletions.
17 changes: 17 additions & 0 deletions src/Support/Migration.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

namespace PragmaRX\Tracker\Support;

use PragmaRX\Support\Migration as PragmaRxMigration;

abstract class Migration extends PragmaRxMigration
{
protected function checkConnection()
{
$this->manager = app()->make('db');

$this->connection = $this->manager->connection('tracker');

parent::checkConnection();
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

use PragmaRX\Support\Migration;
use PragmaRX\Tracker\Support\Migration;

class CreateTrackerPathsTable extends Migration {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

use PragmaRX\Support\Migration;
use PragmaRX\Tracker\Support\Migration;

class CreateTrackerQueriesTable extends Migration {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

use PragmaRX\Support\Migration;
use PragmaRX\Tracker\Support\Migration;

class CreateTrackerQueriesArgumentsTable extends Migration {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

use PragmaRX\Support\Migration;
use PragmaRX\Tracker\Support\Migration;

class CreateTrackerRoutesTable extends Migration {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

use PragmaRX\Support\Migration;
use PragmaRX\Tracker\Support\Migration;

class CreateTrackerRoutesPathsTable extends Migration {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

use PragmaRX\Support\Migration;
use PragmaRX\Tracker\Support\Migration;

class CreateTrackerRoutePathParametersTable extends Migration {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

use PragmaRX\Support\Migration;
use PragmaRX\Tracker\Support\Migration;

class CreateTrackerAgentsTable extends Migration {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

use PragmaRX\Support\Migration;
use PragmaRX\Tracker\Support\Migration;

class CreateTrackerCookiesTable extends Migration {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

use PragmaRX\Support\Migration;
use PragmaRX\Tracker\Support\Migration;

class CreateTrackerDevicesTable extends Migration {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

use PragmaRX\Support\Migration;
use PragmaRX\Tracker\Support\Migration;

class CreateTrackerDomainsTable extends Migration {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

use PragmaRX\Support\Migration;
use PragmaRX\Tracker\Support\Migration;

class CreateTrackerReferersTable extends Migration {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

use PragmaRX\Support\Migration;
use PragmaRX\Tracker\Support\Migration;

class CreateTrackerGeoipTable extends Migration {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

use PragmaRX\Support\Migration;
use PragmaRX\Tracker\Support\Migration;

class CreateTrackerSessionsTable extends Migration {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

use PragmaRX\Support\Migration;
use PragmaRX\Tracker\Support\Migration;

class CreateTrackerErrorsTable extends Migration {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

use PragmaRX\Support\Migration;
use PragmaRX\Tracker\Support\Migration;

class CreateTrackerSystemClassesTable extends Migration {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

use PragmaRX\Support\Migration;
use PragmaRX\Tracker\Support\Migration;

class CreateTrackerLogTable extends Migration {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

use PragmaRX\Support\Migration;
use PragmaRX\Tracker\Support\Migration;

class CreateTrackerEventsTable extends Migration {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

use PragmaRX\Support\Migration;
use PragmaRX\Tracker\Support\Migration;

class CreateTrackerEventsLogTable extends Migration {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

use PragmaRX\Support\Migration;
use PragmaRX\Tracker\Support\Migration;

class CreateTrackerSqlQueriesTable extends Migration {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

use PragmaRX\Support\Migration;
use PragmaRX\Tracker\Support\Migration;

class CreateTrackerSqlQueryBindingsTable extends Migration {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

use PragmaRX\Support\Migration;
use PragmaRX\Tracker\Support\Migration;

class CreateTrackerSqlQueryBindingsParametersTable extends Migration {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

use PragmaRX\Support\Migration;
use PragmaRX\Tracker\Support\Migration;

class CreateTrackerSqlQueriesLogTable extends Migration {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

use PragmaRX\Support\Migration;
use PragmaRX\Tracker\Support\Migration;

class CreateTrackerConnectionsTable extends Migration {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

use PragmaRX\Support\Migration;
use PragmaRX\Tracker\Support\Migration;

class CreateTrackerTablesRelations extends Migration {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

use PragmaRX\Support\Migration;
use PragmaRX\Tracker\Support\Migration;

class CreateTrackerRefererSearchTermTable extends Migration {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

use PragmaRX\Support\Migration;
use PragmaRX\Tracker\Support\Migration;

class AddTrackerRefererColumns extends Migration {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

use PragmaRX\Support\Migration;
use PragmaRX\Tracker\Support\Migration;

class AddTrackerRefererColumnToLog extends Migration
{
Expand Down

0 comments on commit 049fd3d

Please sign in to comment.