mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-05 07:52:34 +00:00
Database collations (#489)
* SyncDatabases * Collation on Create inc WordPress * Refactored Enum * Resolve sync issue * Fix for PostgreSQL * pint * reversed enum * style adjustments * add unit tests * style * fix tests * more tests --------- Co-authored-by: Saeed Vaziry <61919774+saeedvaziry@users.noreply.github.com> Co-authored-by: Saeed Vaziry <mr.saeedvaziry@gmail.com>
This commit is contained in:
@ -24,6 +24,8 @@ public function test_create_database(): void
|
||||
'server' => $this->server,
|
||||
]), [
|
||||
'name' => 'database',
|
||||
'charset' => 'utf8mb4',
|
||||
'collation' => 'utf8mb4_unicode_ci',
|
||||
])
|
||||
->assertSuccessful()
|
||||
->assertJsonFragment([
|
||||
|
@ -27,6 +27,8 @@ public function test_create_database(): void
|
||||
])
|
||||
->callAction('create', [
|
||||
'name' => 'database',
|
||||
'charset' => 'utf8mb4',
|
||||
'collation' => 'utf8mb4_unicode_ci',
|
||||
])
|
||||
->assertSuccessful();
|
||||
|
||||
@ -47,6 +49,8 @@ public function test_create_database_with_user(): void
|
||||
])
|
||||
->callAction('create', [
|
||||
'name' => 'database',
|
||||
'charset' => 'utf8mb4',
|
||||
'collation' => 'utf8mb4_unicode_ci',
|
||||
'user' => true,
|
||||
'username' => 'user',
|
||||
'password' => 'password',
|
||||
|
@ -361,6 +361,8 @@ public static function create_data(): array
|
||||
'email' => 'email@example.com',
|
||||
'password' => 'password',
|
||||
'database' => 'example',
|
||||
'charset' => 'utf8mb4',
|
||||
'collation' => 'utf8mb4_unicode_ci',
|
||||
'database_user' => 'example',
|
||||
'database_password' => 'password',
|
||||
],
|
||||
@ -376,6 +378,8 @@ public static function create_data(): array
|
||||
'email' => 'email@example.com',
|
||||
'password' => 'password',
|
||||
'database' => 'example',
|
||||
'charset' => 'utf8mb4',
|
||||
'collation' => 'utf8mb4_unicode_ci',
|
||||
'database_user' => 'example',
|
||||
'database_password' => 'password',
|
||||
'user' => 'example',
|
||||
|
Reference in New Issue
Block a user