# Deleting Pilot

**URL:** <https://forum.phpvms.net/t/deleting-pilot/2134>\
**Category:** phpVMS Legacy Support (v2/v5)\
**Created:** [March 3, 2010, 1:21am UTC](https://forum.phpvms.net/t/deleting-pilot/2134 "2010-03-03T01:21:58Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![lorlandi](https://forum.phpvms.net/user_avatar/forum.phpvms.net/lorlandi/32/52_2.png) [@lorlandi](https://forum.phpvms.net/u/lorlandi)\
**Post date:** [March 3, 2010, 1:21am UTC](https://forum.phpvms.net/t/deleting-pilot/2134/1 "2010-03-03T01:21:58Z")

</div>

One little question, on deleting pilot from admin panel all register including pireps etc… are deleting too. But for example, the deleted pilot ID was DDD002, but on register a new pilot the ID is 003 and the pilots table appear DDD001 , DDD003.

Any chance to continue according database ID.

Thanks again.

---

<div class="post-metadata">

**Author:** ![nabeel](https://forum.phpvms.net/user_avatar/forum.phpvms.net/nabeel/32/2971_2.png) [@nabeel](https://forum.phpvms.net/u/nabeel)\
**Post date:** [March 3, 2010, 2:21am UTC](https://forum.phpvms.net/t/deleting-pilot/2134/2 "2010-03-03T02:21:57Z")

</div>

Nope, those are assigned by the database, and it doesn’t fill in records

---

<div class="post-metadata">

**Author:** ![lorlandi](https://forum.phpvms.net/user_avatar/forum.phpvms.net/lorlandi/32/52_2.png) [@lorlandi](https://forum.phpvms.net/u/lorlandi)\
**Post date:** [March 3, 2010, 10:08pm UTC](https://forum.phpvms.net/t/deleting-pilot/2134/3 "2010-03-03T22:08:18Z")

</div>

Mmmmm…ok, it’s mean the only way is to change mannualy the database in “Table Options…auto-increment field”.

Thanks Nabeel.

---

<div class="post-metadata">

**Author:** ![joeri](https://forum.phpvms.net/user_avatar/forum.phpvms.net/joeri/32/30_2.png) [@joeri](https://forum.phpvms.net/u/joeri)\
**Post date:** [March 3, 2010, 10:30pm UTC](https://forum.phpvms.net/t/deleting-pilot/2134/4 "2010-03-03T22:30:34Z")

</div>

> Mmmmm…ok, it’s mean the only way is to change mannualy the database in “Table Options…auto-increment field”.
> 
> Thanks Nabeel.

i wouldn’t change the id iff i was you tried id in the past will screw up the whole phpvms.

gr joeri

---

<div class="post-metadata">

**Author:** ![mark1million](https://forum.phpvms.net/user_avatar/forum.phpvms.net/mark1million/32/15_2.png) [@mark1million](https://forum.phpvms.net/u/mark1million)\
**Post date:** [March 3, 2010, 10:44pm UTC](https://forum.phpvms.net/t/deleting-pilot/2134/5 "2010-03-03T22:44:13Z")

</div>

What you can do is what i have done on my dev site, go in to phpmyadmin and select the pilots table then operations, and defrag and optimize it, that will reduce the number again but you can seriously screw things up if you do this at the wrong time.

SO i wouldn’t attempt on a live site.

---

<div class="post-metadata">

**Author:** ![lorlandi](https://forum.phpvms.net/user_avatar/forum.phpvms.net/lorlandi/32/52_2.png) [@lorlandi](https://forum.phpvms.net/u/lorlandi)\
**Post date:** [March 3, 2010, 10:47pm UTC](https://forum.phpvms.net/t/deleting-pilot/2134/6 "2010-03-03T22:47:38Z")

</div>

I made the change on database joeri and works ok, anyway you are correct in case a pilot in the middle of the table but in this was the last pilot registered and then deleting, that was only a test.

Thanks anyway for your support.

Regards

---

<div class="post-metadata">

**Author:** ![nabeel](https://forum.phpvms.net/user_avatar/forum.phpvms.net/nabeel/32/2971_2.png) [@nabeel](https://forum.phpvms.net/u/nabeel)\
**Post date:** [March 3, 2010, 11:46pm UTC](https://forum.phpvms.net/t/deleting-pilot/2134/7 "2010-03-03T23:46:28Z")

</div>

> I made the change on database joeri and works ok, anyway you are correct in case a pilot in the middle of the table but in this was the last pilot registered and then deleting, that was only a test.
> 
> Thanks anyway for your support.
> 
> Regards

Just watch out because that ID is used in other tables as well. So if you change it there, and not everywhere else, then you’ll be missing data

---

<div class="post-metadata">

**Author:** ![joeri](https://forum.phpvms.net/user_avatar/forum.phpvms.net/joeri/32/30_2.png) [@joeri](https://forum.phpvms.net/u/joeri)\
**Post date:** [March 4, 2010, 8:15am UTC](https://forum.phpvms.net/t/deleting-pilot/2134/8 "2010-03-04T08:15:11Z")

</div>

> I made the change on database joeri and works ok, anyway you are correct in case a pilot in the middle of the table but in this was the last pilot registered and then deleting, that was only a test.
> 
> Thanks anyway for your support.
> 
> Regards

for me it was also working in he beginning but after a few day the problems got on their way i just wanted to warn you

---

<div class="post-metadata">

**Author:** ![lorlandi](https://forum.phpvms.net/user_avatar/forum.phpvms.net/lorlandi/32/52_2.png) [@lorlandi](https://forum.phpvms.net/u/lorlandi)\
**Post date:** [March 4, 2010, 4:36pm UTC](https://forum.phpvms.net/t/deleting-pilot/2134/9 "2010-03-04T16:36:02Z")

</div>

Ok joeri, but now i’m making many test in all pages, database and all resorces of this excelent software, and before start officialy the virtual airline site i nedd to know what can i do and limitations, anyway i made changes few days ago and screw up the whole phpvms like your warning before ,lol.

Thanks and regards all

---

<div class="post-metadata">

**Author:** ![joeri](https://forum.phpvms.net/user_avatar/forum.phpvms.net/joeri/32/30_2.png) [@joeri](https://forum.phpvms.net/u/joeri)\
**Post date:** [March 4, 2010, 5:11pm UTC](https://forum.phpvms.net/t/deleting-pilot/2134/10 "2010-03-04T17:11:35Z")

</div>

> Ok joeri, but now i’m making many test in all pages, database and all resorces of this excelent software, and before start officialy the virtual airline site i nedd to know what can i do and limitations, anyway i made changes few days ago and screw up the whole phpvms like your warning before ,lol.
> 
> Thanks and regards all

what you can do: the sky is the limit

limitations that will be awnserd from Nabeel

gr joeri

---

<div class="post-metadata">

**Author:** ![nabeel](https://forum.phpvms.net/user_avatar/forum.phpvms.net/nabeel/32/2971_2.png) [@nabeel](https://forum.phpvms.net/u/nabeel)\
**Post date:** [March 5, 2010, 12:20am UTC](https://forum.phpvms.net/t/deleting-pilot/2134/11 "2010-03-05T00:20:51Z")

</div>

I decided to add the ability to change the pilot ID next release.

---

<div class="post-metadata">

**Author:** ![lorlandi](https://forum.phpvms.net/user_avatar/forum.phpvms.net/lorlandi/32/52_2.png) [@lorlandi](https://forum.phpvms.net/u/lorlandi)\
**Post date:** [March 5, 2010, 2:25pm UTC](https://forum.phpvms.net/t/deleting-pilot/2134/12 "2010-03-05T14:25:05Z")

</div>

> I decided to add the ability to change the pilot ID next release.

Excelent Nabeel, good news and millions of thanks for your time and dedication.

Regards
