Skip to content

Commit 1c45714

Browse files
committed
fix: include down migration creation to follow project pattern
Signed-off-by: Mouad BANI <mouad-mb@outlook.com>
1 parent 8c286ec commit 1c45714

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

  • .claude/skills/scaffold-snowflake-connector

.claude/skills/scaffold-snowflake-connector/SKILL.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -410,11 +410,11 @@ Add `OrganizationAttributeSource.{PLATFORM},` to the `ORG_DB_ATTRIBUTE_SOURCE_PR
410410

411411
---
412412

413-
**Touch point 5 — Flyway migration** (new file)
413+
**Touch point 5 — Flyway migration** (two new files)
414414

415-
File: `backend/src/database/migrations/V{epoch_seconds}__add{Platform}ActivityTypes.sql`
415+
Use a 10-digit second-epoch for the timestamp — run `date +%s` in terminal.
416416

417-
Template (use a 10-digit second-epoch for the `V` prefix, matching existing migrations — run `date +%s` in terminal):
417+
**File A:** `backend/src/database/migrations/V{epoch_seconds}__add{Platform}ActivityTypes.sql`
418418

419419
```sql
420420
INSERT INTO "activityTypes" ("activityType", platform, "isCodeContribution", "isCollaboration", description, "label") VALUES
@@ -423,6 +423,10 @@ INSERT INTO "activityTypes" ("activityType", platform, "isCodeContribution", "is
423423
('{string-value}', '{platform-string}', {false|true}, {false|true}, '{description}', '{label}');
424424
```
425425

426+
**File B:** `backend/src/database/migrations/U{epoch_seconds}__add{Platform}ActivityTypes.sql`
427+
428+
Empty file — same timestamp and name as File A, prefix `U` instead of `V`. Matches the pattern used by existing migrations (e.g., `U1771497876__addCventActivityTypes.sql`).
429+
426430
---
427431

428432
**Touch point 6 — `snowflake_connectors/types.ts`**

0 commit comments

Comments
 (0)