Skip to content

Commit

Permalink
fix migration.
Browse files Browse the repository at this point in the history
  • Loading branch information
hello-omny committed Jan 3, 2020
1 parent bf6cdd4 commit 1b5dd41
Show file tree
Hide file tree
Showing 7 changed files with 86,173 additions and 86,172 deletions.
1 change: 1 addition & 0 deletions src/entity/GeoCity.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*
* @property int $id
* @property int|null $fgi_id
* @property string $slug
* @property string $name
* @property string $name_ru
* @property int $division_id
Expand Down
168,742 changes: 84,371 additions & 84,371 deletions src/migrations/_geo_city.sql

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions src/migrations/_geo_continent.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
INSERT INTO `amotormag.loc`.geo_continent (fgi_id, code, name, name_ru) VALUES (49518, 'AF', 'Africa', 'Африка');
INSERT INTO `amotormag.loc`.geo_continent (fgi_id, code, name, name_ru) VALUES (1546102, 'AN', 'Antarctica', 'Антарктика');
INSERT INTO `amotormag.loc`.geo_continent (fgi_id, code, name, name_ru) VALUES (69543, 'AS', 'Asia', 'Азия');
INSERT INTO `amotormag.loc`.geo_continent (fgi_id, code, name, name_ru) VALUES (145952, 'EU', 'Europe', 'Европа');
INSERT INTO `amotormag.loc`.geo_continent (fgi_id, code, name, name_ru) VALUES (3373408, 'NA', 'North America', 'Северная Америка');
INSERT INTO `amotormag.loc`.geo_continent (fgi_id, code, name, name_ru) VALUES (1559582, 'OC', 'Oceania', 'Океания');
INSERT INTO `amotormag.loc`.geo_continent (fgi_id, code, name, name_ru) VALUES (3377408, 'SA', 'South America', 'Южная Америка');
INSERT INTO geo_continent (fgi_id, code, name, name_ru) VALUES (49518, 'AF', 'Africa', 'Африка');
INSERT INTO geo_continent (fgi_id, code, name, name_ru) VALUES (1546102, 'AN', 'Antarctica', 'Антарктика');
INSERT INTO geo_continent (fgi_id, code, name, name_ru) VALUES (69543, 'AS', 'Asia', 'Азия');
INSERT INTO geo_continent (fgi_id, code, name, name_ru) VALUES (145952, 'EU', 'Europe', 'Европа');
INSERT INTO geo_continent (fgi_id, code, name, name_ru) VALUES (3373408, 'NA', 'North America', 'Северная Америка');
INSERT INTO geo_continent (fgi_id, code, name, name_ru) VALUES (1559582, 'OC', 'Oceania', 'Океания');
INSERT INTO geo_continent (fgi_id, code, name, name_ru) VALUES (3377408, 'SA', 'South America', 'Южная Америка');
494 changes: 247 additions & 247 deletions src/migrations/_geo_country.sql

Large diffs are not rendered by default.

1,716 changes: 858 additions & 858 deletions src/migrations/_geo_division.sql

Large diffs are not rendered by default.

1,376 changes: 688 additions & 688 deletions src/migrations/_geo_division2.sql

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/migrations/m170516_204142_geo_load_data.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function safeUp()
{
ini_set('memory_limit', '256M');
foreach (self::FILES as $dataFile) {
$file = file_get_contents(__DIR__ . $dataFile);
$file = file_get_contents(__DIR__ .'/'. $dataFile);
$pattern = ";";
$result = explode($pattern, $file);

Expand Down

0 comments on commit 1b5dd41

Please sign in to comment.