Jump to content

Recommended Posts

Posted

Hi Nabeel,

I have discussing a lot with pilots in my VA and they seem to be disapointed by the fact we can't have two aircraft with same name and two different registration codes.

As for MYSQL table primary key is set to "ID" and unique to "Name", it would be better to set unqiue to regitration number...

I guess modding it would imply to change code in ACARS, etc...

Cheers !

Posted

A couple guys in my VA are helping me test out as I build and we talked about the very same thing.

Believe it or not, we do have a cessna 182 RG that we would love to have a few different ones of in the system for sight seeing and such around the KC and St Louis area. As it stands now, we can only use one so I have had to get a quick cessna in the system for now.

Hopefully this feature can be added soon to allow multiple of the same with different reg numbers.

  • Administrators
Posted

You should be able to? I thought that bug was fixed. Let me look through my notes. You're supposed to be able to though.

You can remove the UNIQUE key on the table. I don't think there are any code checks. Internally, I only use the registration (including in the import/export files)

  • Administrators
Posted

That's odd, I don't have a UNIQUE key in my master database for the name. What version are you guys on?

There's no checks in the code either on the name when adding, just on registration.

Posted

Well Nabeel, I have not tried it since I updated from full to Beta last night. I'll give it a go here in a little bit and so if it works or not. Hopefully it does.  ;D

  • Administrators
Posted

Great, thanks.

If it doesn't, you'll have to remove a UNIQUE key from the database. If you have to do that, let me know, because I'll need the SQL query it generates to do that to include in my update script.

  • Administrators
Posted

Can you manually remove the  UNIQUE index in phpmyadmin, and when you do that, it shows the query it used on top of the page, can you paste that in so I can include it in the updater? Thanks

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...