Skip to content

Commit

Permalink
[1.x] Udpates Postgres support (#230)
Browse files Browse the repository at this point in the history
* udpate postgres support

* Apply fixes from StyleCI

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
  • Loading branch information
joedixon and StyleCIBot authored Jun 15, 2023
1 parent 098717c commit 3f3317a
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 20 deletions.
14 changes: 7 additions & 7 deletions src/Commands/DatabaseCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,11 @@ protected function determineDatabaseType($public)
}

return tap($this->option('serverless') ? 'aurora-serverless-v2' : $this->menu('Which type of database would you like to create?', [
'rds' => 'Fixed Size MySQL Instance 8.0 (Free Tier Eligible)',
'rds-mysql-5.7' => 'Fixed Size MySQL Instance 5.7 (Free Tier Eligible)',
'aurora-serverless' => 'Serverless v1 MySQL 5.7 Aurora Cluster',
'aurora-serverless-v2' => 'Serverless v2 MySQL 8.0 Aurora Cluster',
'rds-pgsql-13.4' => 'Fixed Size PostgreSQL Instance 13.4',
'rds' => 'Fixed Size MySQL Instance 8.0 (Free Tier Eligible)',
'rds-mysql-5.7' => 'Fixed Size MySQL Instance 5.7 (Free Tier Eligible)',
'aurora-serverless' => 'Serverless v1 MySQL 5.7 Aurora Cluster',
'aurora-serverless-v2' => 'Serverless v2 MySQL 8.0 Aurora Cluster',
'rds-pgsql-13.11' => 'Fixed Size PostgreSQL Instance 13.11',
'aurora-serverless-pgsql' => 'Serverless PostgreSQL 10.7 Aurora Cluster',
'aurora-serverless-v2-pgsql' => 'Serverless v2 PostgreSQL 14.3 Aurora Cluster',
]), function ($type) use ($public) {
Expand Down Expand Up @@ -143,7 +143,7 @@ protected function determineInstanceClass($type)
if (
$type == 'rds'
|| $type == 'rds-mysql-5.7'
|| $type == 'rds-pgsql-13.4'
|| $type == 'rds-pgsql-13.11'
) {
return $this->determineRdsInstanceClass();
}
Expand All @@ -158,7 +158,7 @@ protected function determineRdsInstanceClass()
{
$type = $this->menu('Which type of database instance would you like to create?', [
'general' => 'General Purpose',
'memory' => 'Memory Optimized',
'memory' => 'Memory Optimized',
]);

if ($type == 'general') {
Expand Down
12 changes: 6 additions & 6 deletions src/Commands/DatabaseUpgradeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ class DatabaseUpgradeCommand extends Command
* @var array
*/
protected $databaseTypes = [
'rds' => 'Fixed Size MySQL Instance 8.0 (Free Tier Eligible)',
'rds-mysql-5.7' => 'Fixed Size MySQL Instance 5.7 (Free Tier Eligible)',
'aurora-serverless' => 'Serverless v1 MySQL 5.7 Aurora Cluster',
'aurora-serverless-v2' => 'Serverless v2 MySQL 8.0 Aurora Cluster',
'rds-pgsql-13.4' => 'Fixed Size PostgreSQL Instance 13.4',
'rds-pgsql' => 'Fixed Size PostgreSQL Instance 10.7',
'rds' => 'Fixed Size MySQL Instance 8.0 (Free Tier Eligible)',
'rds-mysql-5.7' => 'Fixed Size MySQL Instance 5.7 (Free Tier Eligible)',
'aurora-serverless' => 'Serverless v1 MySQL 5.7 Aurora Cluster',
'aurora-serverless-v2' => 'Serverless v2 MySQL 8.0 Aurora Cluster',
'rds-pgsql-13.11' => 'Fixed Size PostgreSQL Instance 13.11',
'rds-pgsql' => 'Fixed Size PostgreSQL Instance 10.7',
'aurora-serverless-pgsql' => 'Serverless PostgreSQL 10.7 Aurora Cluster',
'aurora-serverless-v2-pgsql' => 'Serverless v2 PostgreSQL 14.3 Aurora Cluster',
];
Expand Down
1 change: 0 additions & 1 deletion src/Solutions/BucketNameAlreadyExists.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Laravel\VaporCli\Solutions;

use Illuminate\Support\Str;
use Laravel\VaporCli\Deployment;

class BucketNameAlreadyExists
{
Expand Down
1 change: 0 additions & 1 deletion src/Solutions/DomainNameAlreadyExists.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Laravel\VaporCli\Solutions;

use Illuminate\Support\Str;
use Laravel\VaporCli\Deployment;

class DomainNameAlreadyExists
{
Expand Down
1 change: 0 additions & 1 deletion src/Solutions/EnvironmentIsUnhealthy.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Laravel\VaporCli\Solutions;

use Illuminate\Support\Str;
use Laravel\VaporCli\Deployment;

class EnvironmentIsUnhealthy
{
Expand Down
1 change: 0 additions & 1 deletion src/Solutions/EnvironmentVariableLimitReached.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Laravel\VaporCli\Solutions;

use Illuminate\Support\Str;
use Laravel\VaporCli\Deployment;

class EnvironmentVariableLimitReached
{
Expand Down
1 change: 0 additions & 1 deletion src/Solutions/FunctionExceedsMaximumAllowedSize.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Laravel\VaporCli\Solutions;

use Illuminate\Support\Str;
use Laravel\VaporCli\Deployment;

class FunctionExceedsMaximumAllowedSize
{
Expand Down
1 change: 0 additions & 1 deletion src/Solutions/ResourceUpdateInProgress.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Laravel\VaporCli\Solutions;

use Illuminate\Support\Str;
use Laravel\VaporCli\Deployment;

class ResourceUpdateInProgress
{
Expand Down
1 change: 0 additions & 1 deletion src/Solutions/RunDeploymentHooksTimedOut.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Laravel\VaporCli\Solutions;

use Illuminate\Support\Str;
use Laravel\VaporCli\Deployment;

class RunDeploymentHooksTimedOut
{
Expand Down

0 comments on commit 3f3317a

Please sign in to comment.