Skip to content

Commit

Permalink
Rename migration
Browse files Browse the repository at this point in the history
  • Loading branch information
HPWebdeveloper committed Jan 11, 2024
1 parent 62b3b01 commit 4e7dc77
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion src/LaravelPayPocketServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function configurePackage(Package $package): void
->hasMigrations(
'create_wallets_logs_table',
'create_wallets_table',
'update_wallets_logs_table'
'add_notes_and_reference_columns_to_wallets_logs_table'
);
}

Expand Down
48 changes: 24 additions & 24 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,30 @@ class TestCase extends Orchestra
{
use RefreshDatabase;

public function getEnvironmentSetUp($app)
{
config()->set('app.key', 'base64:EWcFBKBT8lKlGK8nQhTHY+wg19QlfmbhtO9Qnn3NfcA=');

config()->set('database.default', 'testing');

/*
$migration = include __DIR__.'/../database/migrations/create_laravel-pay-pocket_table.php.stub';
$migration->up();
*/

$migration = include __DIR__.'/database/migrations/create_users_tables.php';
$migration->up();

$migration = include __DIR__.'/../database/migrations/create_wallets_logs_table.php.stub';
$migration->up();

$migration = include __DIR__.'/../database/migrations/create_wallets_table.php.stub';
$migration->up();

$migration = include __DIR__.'/../database/migrations/add_notes_and_reference_columns_to_wallets_logs_table.php.stub';
$migration->up();
}

protected function setUp(): void
{
parent::setUp();
Expand All @@ -34,28 +58,4 @@ protected function getPackageProviders($app)
LaravelPayPocketServiceProvider::class,
];
}

public function getEnvironmentSetUp($app)
{
config()->set('app.key', 'base64:EWcFBKBT8lKlGK8nQhTHY+wg19QlfmbhtO9Qnn3NfcA=');

config()->set('database.default', 'testing');

/*
$migration = include __DIR__.'/../database/migrations/create_laravel-pay-pocket_table.php.stub';
$migration->up();
*/

$migration = include __DIR__.'/database/migrations/create_users_tables.php';
$migration->up();

$migration = include __DIR__.'/../database/migrations/create_wallets_logs_table.php.stub';
$migration->up();

$migration = include __DIR__.'/../database/migrations/create_wallets_table.php.stub';
$migration->up();

$migration = include __DIR__.'/../database/migrations/update_wallets_logs_table.php.stub';
$migration->up();
}
}

0 comments on commit 4e7dc77

Please sign in to comment.