| @@ -46,9 +46,9 @@ | ||
| 46 | 46 | $existingTripId = null; |
| 47 | 47 | |
| 48 | 48 | if ($this->isForceMigration()) { |
| 49 | 49 | // Force migration: Always insert new (create duplicates) |
| 50 | - $slug = $this->generateUniqueSlug($baseSlug, 'yatra_new_trips'); | |
| 50 | + $slug = $this->generateUniqueSlug($baseSlug, 'yatra_trips'); | |
| 51 | 51 | } else { |
| 52 | 52 | // Regular migration: Check if already exists |
| 53 | 53 | $existingTripId = $this->wpdb->get_var($this->wpdb->prepare( |
| 54 | 54 | "SELECT id FROM " . TripsTable::getTableName() . " WHERE slug = %s", |
| @@ -56,9 +56,9 @@ | ||
| 56 | 56 | )); |
| 57 | 57 | |
| 58 | 58 | if (!$existingTripId) { |
| 59 | 59 | // Generate unique slug for new insert |
| 60 | - $slug = $this->generateUniqueSlug($baseSlug, 'yatra_new_trips'); | |
| 60 | + $slug = $this->generateUniqueSlug($baseSlug, 'yatra_trips'); | |
| 61 | 61 | } |
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | // Raw SQL: get_post_thumbnail_id internally calls get_post_meta for _thumbnail_id |