protected function createVirtualMigration(Resource $resource, $destenationFile, $tableName)
    {
        $tracker = new MigrationHistoryTracker();
        $capsule = $tracker->get($tableName);

        if (!is_null($capsule)) {
            $tracker->forget($tableName);
        }
        // At this point there are no capsule or migration associated with this table.
        $capsule = MigrationTrackerCapsule::get($tableName, $this->getModelName(), Helpers::convertSlashToBackslash($destenationFile));
        $migration = $this->getMigrationCapsule($resource, $tableName);
        $tracker->add($capsule, $migration);
    }
protected function createVirtualMigration(Resource $resource, $destenationFile, $tableName)
    {
        $tracker = new MigrationHistoryTracker();
        $capsule = $tracker->get($tableName);

        if (!is_null($capsule)) {
            $tracker->forget($tableName);
        }
        // At this point there are no capsule or migration associated with this table.
        $capsule = MigrationTrackerCapsule::get($tableName, $this->getModelName(), Helpers::convertSlashToBackslash($destenationFile));
        $migration = $this->getMigrationCapsule($resource, $tableName);
        $tracker->add($capsule, $migration);
    }
protected function createVirtualMigration ( Resource $ resource , $ destenationFile , $ tableName ) { $ tracker = new MigrationHistoryTracker ( ) ; $ capsule = $ tracker -> get ( $ tableName ) ; if ( ! is_null ( $ capsule ) ) { $ tracker -> forget ( $ tableName ) ; } // At this point there are no capsule or migration associated with this table. $ capsule = MigrationTrackerCapsule :: get ( $ tableName , $ this -> getModelName ( ) , Helpers :: convertSlashToBackslash ( $ destenationFile ) ) ; $ migration = $ this -> getMigrationCapsule ( $ resource , $ tableName ) ; $ tracker -> add ( $ capsule , $ migration ) ; }
Creates a virtual migration in the migration tracker

@param CrestApps\CodeGenerator\Models\Resource $resource
@param string $destenationFile
@param string $tableName

@return void
Creates a virtual migration in the migration tracker