Commit a2455de
authored
fix: add repo column support to database_build.js (#302)
* fix: add repo column support to database_build.js
Port the repo field fix from database_build.py (PR #289) to the new
Node.js database build script. PDS JSON sources now include a repo
field; this adds a repo VARCHAR(500) column to all tables and inserts
the value (or null) during import.
Fixes #241
Signed-off-by: vmuralictr <vmurali.ctr@gmail.com>
* fix: deduplicate comma-separated repo values during import
Some PDS source files contain repo fields with the same value repeated
many times (e.g. 47x), exceeding the VARCHAR(500) column limit. Dedupe
the comma-separated values using a Set before inserting, so only unique
repo names are stored.
See: linux-on-ibm-z/PDS#127
Signed-off-by: vmuralictr <vmurali.ctr@gmail.com>
---------
Signed-off-by: vmuralictr <vmurali.ctr@gmail.com>1 parent ddc4ece commit a2455de
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| 57 | + | |
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
| |||
61 | 63 | | |
62 | 64 | | |
63 | 65 | | |
64 | | - | |
| 66 | + | |
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
| |||
0 commit comments