@friggframework/devtools 2.0.0--canary.461.a0527a3.0 → 2.0.0--canary.461.4b9ba0b.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,7 +178,7 @@ class MigrationBuilder extends InfrastructureBuilder {
|
|
|
170
178
|
|
|
171
179
|
// Add queue URL to environment
|
|
172
180
|
result.environment.DB_MIGRATION_QUEUE_URL = { Ref: 'DbMigrationQueue' };
|
|
173
|
-
|
|
181
|
+
|
|
174
182
|
// Hardcode DB_TYPE for PostgreSQL-only migrations
|
|
175
183
|
// Avoids Prisma needing to load app definition to determine database type
|
|
176
184
|
result.environment.DB_TYPE = 'postgresql';
|
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.4b9ba0b.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.4b9ba0b.0",
|
|
15
|
+
"@friggframework/test": "2.0.0--canary.461.4b9ba0b.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.4b9ba0b.0",
|
|
38
|
+
"@friggframework/prettier-config": "2.0.0--canary.461.4b9ba0b.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": "4b9ba0be386a8d8c9af0398356f6644d41e89af6"
|
|
74
74
|
}
|