Skip to content

Commit 3f3317a

Browse files
joedixonStyleCIBot
andauthored
[1.x] Udpates Postgres support (#230)
* udpate postgres support * Apply fixes from StyleCI --------- Co-authored-by: StyleCI Bot <[email protected]>
1 parent 098717c commit 3f3317a

9 files changed

+13
-20
lines changed

src/Commands/DatabaseCommand.php

+7-7
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,11 @@ protected function determineDatabaseType($public)
110110
}
111111

112112
return tap($this->option('serverless') ? 'aurora-serverless-v2' : $this->menu('Which type of database would you like to create?', [
113-
'rds' => 'Fixed Size MySQL Instance 8.0 (Free Tier Eligible)',
114-
'rds-mysql-5.7' => 'Fixed Size MySQL Instance 5.7 (Free Tier Eligible)',
115-
'aurora-serverless' => 'Serverless v1 MySQL 5.7 Aurora Cluster',
116-
'aurora-serverless-v2' => 'Serverless v2 MySQL 8.0 Aurora Cluster',
117-
'rds-pgsql-13.4' => 'Fixed Size PostgreSQL Instance 13.4',
113+
'rds' => 'Fixed Size MySQL Instance 8.0 (Free Tier Eligible)',
114+
'rds-mysql-5.7' => 'Fixed Size MySQL Instance 5.7 (Free Tier Eligible)',
115+
'aurora-serverless' => 'Serverless v1 MySQL 5.7 Aurora Cluster',
116+
'aurora-serverless-v2' => 'Serverless v2 MySQL 8.0 Aurora Cluster',
117+
'rds-pgsql-13.11' => 'Fixed Size PostgreSQL Instance 13.11',
118118
'aurora-serverless-pgsql' => 'Serverless PostgreSQL 10.7 Aurora Cluster',
119119
'aurora-serverless-v2-pgsql' => 'Serverless v2 PostgreSQL 14.3 Aurora Cluster',
120120
]), function ($type) use ($public) {
@@ -143,7 +143,7 @@ protected function determineInstanceClass($type)
143143
if (
144144
$type == 'rds'
145145
|| $type == 'rds-mysql-5.7'
146-
|| $type == 'rds-pgsql-13.4'
146+
|| $type == 'rds-pgsql-13.11'
147147
) {
148148
return $this->determineRdsInstanceClass();
149149
}
@@ -158,7 +158,7 @@ protected function determineRdsInstanceClass()
158158
{
159159
$type = $this->menu('Which type of database instance would you like to create?', [
160160
'general' => 'General Purpose',
161-
'memory' => 'Memory Optimized',
161+
'memory' => 'Memory Optimized',
162162
]);
163163

164164
if ($type == 'general') {

src/Commands/DatabaseUpgradeCommand.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ class DatabaseUpgradeCommand extends Command
1414
* @var array
1515
*/
1616
protected $databaseTypes = [
17-
'rds' => 'Fixed Size MySQL Instance 8.0 (Free Tier Eligible)',
18-
'rds-mysql-5.7' => 'Fixed Size MySQL Instance 5.7 (Free Tier Eligible)',
19-
'aurora-serverless' => 'Serverless v1 MySQL 5.7 Aurora Cluster',
20-
'aurora-serverless-v2' => 'Serverless v2 MySQL 8.0 Aurora Cluster',
21-
'rds-pgsql-13.4' => 'Fixed Size PostgreSQL Instance 13.4',
22-
'rds-pgsql' => 'Fixed Size PostgreSQL Instance 10.7',
17+
'rds' => 'Fixed Size MySQL Instance 8.0 (Free Tier Eligible)',
18+
'rds-mysql-5.7' => 'Fixed Size MySQL Instance 5.7 (Free Tier Eligible)',
19+
'aurora-serverless' => 'Serverless v1 MySQL 5.7 Aurora Cluster',
20+
'aurora-serverless-v2' => 'Serverless v2 MySQL 8.0 Aurora Cluster',
21+
'rds-pgsql-13.11' => 'Fixed Size PostgreSQL Instance 13.11',
22+
'rds-pgsql' => 'Fixed Size PostgreSQL Instance 10.7',
2323
'aurora-serverless-pgsql' => 'Serverless PostgreSQL 10.7 Aurora Cluster',
2424
'aurora-serverless-v2-pgsql' => 'Serverless v2 PostgreSQL 14.3 Aurora Cluster',
2525
];

src/Solutions/BucketNameAlreadyExists.php

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace Laravel\VaporCli\Solutions;
44

55
use Illuminate\Support\Str;
6-
use Laravel\VaporCli\Deployment;
76

87
class BucketNameAlreadyExists
98
{

src/Solutions/DomainNameAlreadyExists.php

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace Laravel\VaporCli\Solutions;
44

55
use Illuminate\Support\Str;
6-
use Laravel\VaporCli\Deployment;
76

87
class DomainNameAlreadyExists
98
{

src/Solutions/EnvironmentIsUnhealthy.php

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace Laravel\VaporCli\Solutions;
44

55
use Illuminate\Support\Str;
6-
use Laravel\VaporCli\Deployment;
76

87
class EnvironmentIsUnhealthy
98
{

src/Solutions/EnvironmentVariableLimitReached.php

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace Laravel\VaporCli\Solutions;
44

55
use Illuminate\Support\Str;
6-
use Laravel\VaporCli\Deployment;
76

87
class EnvironmentVariableLimitReached
98
{

src/Solutions/FunctionExceedsMaximumAllowedSize.php

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace Laravel\VaporCli\Solutions;
44

55
use Illuminate\Support\Str;
6-
use Laravel\VaporCli\Deployment;
76

87
class FunctionExceedsMaximumAllowedSize
98
{

src/Solutions/ResourceUpdateInProgress.php

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace Laravel\VaporCli\Solutions;
44

55
use Illuminate\Support\Str;
6-
use Laravel\VaporCli\Deployment;
76

87
class ResourceUpdateInProgress
98
{

src/Solutions/RunDeploymentHooksTimedOut.php

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace Laravel\VaporCli\Solutions;
44

55
use Illuminate\Support\Str;
6-
use Laravel\VaporCli\Deployment;
76

87
class RunDeploymentHooksTimedOut
98
{

0 commit comments

Comments
 (0)