Skip to content

Commit

Permalink
Move migration stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
yaroslawww committed Jan 1, 2022
1 parent e3432b0 commit 36292b4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
16 changes: 9 additions & 7 deletions config/geonames.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/
'import_repos' => [
'general' => env('GEONAMES_IMPORT_REPO', 'http://download.geonames.org/export/dump'),
'zip' => env('GEONAMES_IMPORT_POSTAL_CODE_REPO', 'http://download.geonames.org/export/zip'),
'zip' => env('GEONAMES_IMPORT_POSTAL_CODE_REPO', 'http://download.geonames.org/export/zip'),
],

/*
Expand All @@ -21,9 +21,9 @@
|--------------------------------------------------------------------------
|
*/
'storage' => [
'path' => storage_path('geonames'),
'postal_codes_dir' => 'postal_codes',
'storage' => [
'path' => storage_path('geonames'),
'postal_codes_dir' => 'postal_codes',
'download_provider' => 'wget', // 'curl_php'
],

Expand All @@ -33,14 +33,16 @@
|--------------------------------------------------------------------------
|
*/
'database' => [
'connection' => env('GEONAMES_DB_CONNECTION', env('DB_CONNECTION', 'mysql_geo')),
'database' => [
'connection' => env('GEONAMES_DB_CONNECTION', env('DB_CONNECTION', 'mysql_geo')),

/** Used only in model */
'default_suffix' => env('GEONAMES_DEFAULT_SUFFIX'),

'tables' => [
'geonames' => 'geonames',
'geo_feature_classes' => 'geo_feature_classes',
'geo_feature_codes' => 'geo_feature_codes',
'geonames' => 'geonames',
'postalcodes' => 'geo_postal_codes',
],
],
Expand Down
2 changes: 1 addition & 1 deletion src/Database/Tables/Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ abstract class Table implements GeoTable
*
* @var string
*/
protected string $migrationTemplatesPath = __DIR__ . '/../../../database/migrations/';
protected string $migrationTemplatesPath = __DIR__ . '/../../../database/migrations-stubs/';

/**
* Data file path prefix.
Expand Down

0 comments on commit 36292b4

Please sign in to comment.