Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed bug with transferring UUID and ULID as primary key #41

Merged
merged 15 commits into from
Dec 15, 2023
Prev Previous commit
Next Next commit
Fixed databases
andrey-helldar committed Dec 15, 2023
commit db3582594ab96704fb4a4f9feee4a0d834910f31
2 changes: 2 additions & 0 deletions tests/Unit/MysqlToMysqlTest.php
Original file line number Diff line number Diff line change
@@ -240,6 +240,7 @@ public function testUlidKeysAsPrimaryKey()
}

$this->artisan('migrate', [
'--database' => $this->source_connection,
'--realpath' => true,
'--path' => __DIR__ . '/../fixtures/primary_keys/2023_12_15_014834_create_ulid_primary_key.php',
])->run();
@@ -275,6 +276,7 @@ public function testUuidKeysAsPrimaryKey()
}

$this->artisan('migrate', [
'--database' => $this->source_connection,
'--realpath' => true,
'--path' => __DIR__ . '/../fixtures/primary_keys/2023_12_15_014834_create_uuid_primary_key.php',
])->run();
2 changes: 2 additions & 0 deletions tests/Unit/MysqlToPostgresTest.php
Original file line number Diff line number Diff line change
@@ -240,6 +240,7 @@ public function testUlidKeysAsPrimaryKey()
}

$this->artisan('migrate', [
'--database' => $this->source_connection,
'--realpath' => true,
'--path' => __DIR__ . '/../fixtures/primary_keys/2023_12_15_014834_create_ulid_primary_key.php',
])->run();
@@ -275,6 +276,7 @@ public function testUuidKeysAsPrimaryKey()
}

$this->artisan('migrate', [
'--database' => $this->source_connection,
'--realpath' => true,
'--path' => __DIR__ . '/../fixtures/primary_keys/2023_12_15_014834_create_uuid_primary_key.php',
])->run();
2 changes: 2 additions & 0 deletions tests/Unit/PostgresToMysqlTest.php
Original file line number Diff line number Diff line change
@@ -240,6 +240,7 @@ public function testUlidKeysAsPrimaryKey()
}

$this->artisan('migrate', [
'--database' => $this->source_connection,
'--realpath' => true,
'--path' => __DIR__ . '/../fixtures/primary_keys/2023_12_15_014834_create_ulid_primary_key.php',
])->run();
@@ -275,6 +276,7 @@ public function testUuidKeysAsPrimaryKey()
}

$this->artisan('migrate', [
'--database' => $this->source_connection,
'--realpath' => true,
'--path' => __DIR__ . '/../fixtures/primary_keys/2023_12_15_014834_create_uuid_primary_key.php',
])->run();
2 changes: 2 additions & 0 deletions tests/Unit/PostgresToPostgresTest.php
Original file line number Diff line number Diff line change
@@ -240,6 +240,7 @@ public function testUlidKeysAsPrimaryKey()
}

$this->artisan('migrate', [
'--database' => $this->source_connection,
'--realpath' => true,
'--path' => __DIR__ . '/../fixtures/primary_keys/2023_12_15_014834_create_ulid_primary_key.php',
])->run();
@@ -275,6 +276,7 @@ public function testUuidKeysAsPrimaryKey()
}

$this->artisan('migrate', [
'--database' => $this->source_connection,
'--realpath' => true,
'--path' => __DIR__ . '/../fixtures/primary_keys/2023_12_15_014834_create_uuid_primary_key.php',
])->run();