@soulbatical/tetra-dev-toolkit 1.8.3 → 1.8.4

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.
@@ -235,9 +235,20 @@ function scanDatabaseNaming(projectPath, options = {}) {
235
235
 
236
236
  // Index violations: 'Index "name" should use idx_...'
237
237
  const idxMatch = v.match(/Index\s+"(\w+)"\s+should/)
238
- if (idxMatch && isIndexRenamed(idxMatch[1])) {
239
- compliant++
240
- return false
238
+ if (idxMatch) {
239
+ const idxName = idxMatch[1]
240
+ // Direct rename match
241
+ if (isIndexRenamed(idxName)) {
242
+ compliant++
243
+ return false
244
+ }
245
+ // If the index name starts with a renamed table prefix, it's implicitly resolved
246
+ for (const [oldTable] of renamedTables) {
247
+ if (idxName.startsWith(oldTable + '_')) {
248
+ compliant++
249
+ return false
250
+ }
251
+ }
241
252
  }
242
253
 
243
254
  // Missing timestamp violations: 'Table "x" missing created_at, updated_at'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soulbatical/tetra-dev-toolkit",
3
- "version": "1.8.3",
3
+ "version": "1.8.4",
4
4
  "publishConfig": {
5
5
  "access": "restricted"
6
6
  },