@friggframework/devtools 2.0.0--canary.461.74b99c9.0 → 2.0.0--canary.461.862ddf0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -139,6 +139,10 @@ class MigrationBuilder extends InfrastructureBuilder {
|
|
|
139
139
|
reservedConcurrency: 1, // Process one migration at a time (critical for safety)
|
|
140
140
|
description: 'Database migration worker (triggered by SQS queue)',
|
|
141
141
|
package: migrationPackageConfig,
|
|
142
|
+
environment: {
|
|
143
|
+
// Ensure migration functions get DATABASE_URL from provider.environment
|
|
144
|
+
// Note: Serverless will merge this with provider.environment
|
|
145
|
+
},
|
|
142
146
|
events: [
|
|
143
147
|
{
|
|
144
148
|
sqs: {
|
|
@@ -160,6 +164,10 @@ class MigrationBuilder extends InfrastructureBuilder {
|
|
|
160
164
|
memorySize: 512,
|
|
161
165
|
description: 'Database migration HTTP API (POST to trigger, GET to check status)',
|
|
162
166
|
package: migrationPackageConfig,
|
|
167
|
+
environment: {
|
|
168
|
+
// Ensure migration functions get DATABASE_URL from provider.environment
|
|
169
|
+
// Note: Serverless will merge this with provider.environment
|
|
170
|
+
},
|
|
163
171
|
events: [
|
|
164
172
|
{ httpApi: { path: '/db-migrate', method: 'POST' } },
|
|
165
173
|
{ httpApi: { path: '/db-migrate/{processId}', method: 'GET' } },
|
|
@@ -170,12 +178,12 @@ class MigrationBuilder extends InfrastructureBuilder {
|
|
|
170
178
|
|
|
171
179
|
// Add queue URL to environment
|
|
172
180
|
result.environment.DB_MIGRATION_QUEUE_URL = { Ref: 'DbMigrationQueue' };
|
|
173
|
-
|
|
174
|
-
//
|
|
175
|
-
//
|
|
181
|
+
|
|
182
|
+
// Hardcode DB_TYPE for PostgreSQL-only migrations
|
|
183
|
+
// Avoids Prisma needing to load app definition to determine database type
|
|
176
184
|
result.environment.DB_TYPE = 'postgresql';
|
|
177
185
|
|
|
178
|
-
console.log(' ✓ Added DB_MIGRATION_QUEUE_URL environment
|
|
186
|
+
console.log(' ✓ Added DB_MIGRATION_QUEUE_URL and DB_TYPE environment variables');
|
|
179
187
|
|
|
180
188
|
// Add IAM permissions for SQS
|
|
181
189
|
result.iamStatements.push({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@friggframework/devtools",
|
|
3
3
|
"prettier": "@friggframework/prettier-config",
|
|
4
|
-
"version": "2.0.0--canary.461.
|
|
4
|
+
"version": "2.0.0--canary.461.862ddf0.0",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@aws-sdk/client-ec2": "^3.835.0",
|
|
7
7
|
"@aws-sdk/client-kms": "^3.835.0",
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"@babel/eslint-parser": "^7.18.9",
|
|
12
12
|
"@babel/parser": "^7.25.3",
|
|
13
13
|
"@babel/traverse": "^7.25.3",
|
|
14
|
-
"@friggframework/schemas": "2.0.0--canary.461.
|
|
15
|
-
"@friggframework/test": "2.0.0--canary.461.
|
|
14
|
+
"@friggframework/schemas": "2.0.0--canary.461.862ddf0.0",
|
|
15
|
+
"@friggframework/test": "2.0.0--canary.461.862ddf0.0",
|
|
16
16
|
"@hapi/boom": "^10.0.1",
|
|
17
17
|
"@inquirer/prompts": "^5.3.8",
|
|
18
18
|
"axios": "^1.7.2",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"serverless-http": "^2.7.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@friggframework/eslint-config": "2.0.0--canary.461.
|
|
38
|
-
"@friggframework/prettier-config": "2.0.0--canary.461.
|
|
37
|
+
"@friggframework/eslint-config": "2.0.0--canary.461.862ddf0.0",
|
|
38
|
+
"@friggframework/prettier-config": "2.0.0--canary.461.862ddf0.0",
|
|
39
39
|
"aws-sdk-client-mock": "^4.1.0",
|
|
40
40
|
"aws-sdk-client-mock-jest": "^4.1.0",
|
|
41
41
|
"jest": "^30.1.3",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"publishConfig": {
|
|
71
71
|
"access": "public"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "862ddf0cb0533978e97dfc69f6c33c622979436c"
|
|
74
74
|
}
|