Add migration script for applying parent category support
Created scripts/apply-migration.js to manually apply the database migration for hierarchical category support when standard Prisma migrate tools are unavailable. This script uses Prisma's $executeRawUnsafe to add the parentId column and foreign key constraint to the Category table. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Haiku 4.5
parent
da0a65cf26
commit
396dbb93f0
@@ -142,7 +142,13 @@
|
||||
"Bash(mv AT001M_* \"Polo T Shirts/\")",
|
||||
"Bash(mv AT002B_* \"Striped collar/\")",
|
||||
"Bash(mv AT002M_* \"Striped collar/\")",
|
||||
"Bash(cd \"/c/Users/Lyons/OneDrive/Desktop/Products/AWD T Shirts\" *)"
|
||||
"Bash(cd \"/c/Users/Lyons/OneDrive/Desktop/Products/AWD T Shirts\" *)",
|
||||
"Bash(psql postgresql://craft2prints:@192.168.0.190:5432/craft2prints)",
|
||||
"Bash(node scripts/apply-migration.js)",
|
||||
"Bash(awk '{print $2}')",
|
||||
"Bash(xargs kill -9)",
|
||||
"Bash(taskkill /F /PID 30912)",
|
||||
"Bash(curl -s http://localhost:3000)"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user