Jump to content

Migration and Import Question


nicky9499

Recommended Posts

Good day everyone,

 

My virtual airline is doing a feasibility study and research of options for next year's migration plans. We have been using VAFS for the better part of a decade.

We like phpVMS' stability, control and flexibility, in addition to being compatible with SmartCARS.

However, starting the VA from scratch is out of the question, therefore migrating as much data over is a key consideration.

To this end, I have searched but found no information on how to import existing PIREPs (not flight schedules) and pilot accounts into phpVMS.

We have a programmer that can take VAFS PIREPs and parse them into any format, CSV or otherwise, required for the destination system.

Please advise.

 

Cheerio,

Nick

Edited by nicky9499
Link to comment
Share on other sites

  • Moderators

phpVMS v7 is currently under development. In any case, your developer would be great if he could familirize himself with the system's file and database tables. In that case, he will be able to do everything required to import all of the data into phpVMS's database without loosing any of them.

Link to comment
Share on other sites

Thank you for the reply Servetas however that does not answer my question at all. Here is it, rephrased:

To further elaborate: at [http://demo.phpvms.net/admin/flights] there is an Import button at the top of the page.

At [http://demo.phpvms.net/admin/pireps] there is not.

Edited by nicky9499
Link to comment
Share on other sites

  • Administrators

You can import flights - schedules - thru the admin panel. There is no facility in the admin to import PIREPS or pilots.

You should be able to export your PIREPS from your present database using phpMyAdmin. You would then convert that export to the format used for phpVMS v7 and import that into the phpVMS database using phpMyAdmin. Be advised, there may be some fields present in your current database that aren't in phpVMS. Likewise, phpVMS may have some fields that your current software doesn't have.

In any case, you will have to convert most all of your database tables as the format most likely will not match that of phpVMS.

Link to comment
Share on other sites

Thank you ProAvia, fully understood.

Do you think you could post a screenshot of the PIREP database (or just a list of fields present) in phpvms v5, if possible, please?

It would be really helpful for our associate who can then start working on the conversions right away while I install and setup the system (and smartcars).

Link to comment
Share on other sites

  • Administrators

Well now it sounds like you are leaning toward converting from VAFS to phpVMS 5.5.2. 

What version of PHP does your host support?

For PHP 5 see here: https://github.com/DavidJClark/phpvms_5.5.x

For PHP 7.0 - 7.2 see here: https://github.com/ProAviaAZ/phpvms_5.5.2.72

Both of these are basically identical, except for the PHP version they work under. For either, look in /install/sql/structure.xml for the DB table structure.

phpVMS v7 database is totally different than phpVMS v 5.5.2 - and presently, there is no migration tool to convert between the two versions.

Edited by ProAvia
Link to comment
Share on other sites

Hi ProAvia,

Thanks for the elaboration. My host supports php 5.2.17 through 7.3.9.

The team is currently looking at phpvms 5 as it is the last version compatible with TFDi's smartCARS.

However, that there is no way forward from phpvms 5 to 7 is a major concern as we plan for this to be a long term solution.

Is there any migration tool planned (or even possible)? If not, we may put off our plans until smartCARS is compatible with phpvms 7.

Edited by nicky9499
Link to comment
Share on other sites

  • Administrators

There currently is a migration tool for v2/v5 to v7, but I haven't tested it in a long time; it's a command-line/manual process and still incomplete with a few things. I know this is something I'm going to have to better address (to make it easier), but from what I remember, almost everything did transfer over. I think that's something I'm going to focus on getting to work better before the full release. There was some potential data loss, mostly with ACARS, because all the different ACARS stored their data in their own formats.

But that's something I'll need help testing.

v7 won't be compatible with smartcars. They had their own API layer and stuff which sat on top of classic.

  • Like 1
Link to comment
Share on other sites

  • 4 years later...

Hi, I know this question is 5 years old. However, It would be very useful to get a list of required fields to be imported into MySQL.

From IBEva, we also have the data exports about the former system we are still using. We can eventually do some ETL on this data and transform it to the same format as required by PHPvms 7. I know that Fleets, Pilots, and other types of data could be imported successfully using CSV. However, we know that this option is not available for Pireps.

 

Is there any proper method to import this data into the system using a proper Laravel class to do this? Or the only valid method to import the data is writing the data directly into the database as a db import? 

Also, putting data directly into the Pireps table would not affect calculations for hour count for each pilot and also for fleets.

Link to comment
Share on other sites

Simple logic to see what is needed is to create a manual pirep or check an acars pirep directly from the database, then you can prepare your old data to match the new fields and import via some sql queries. Or of course you can write a custom module, utilizing laravel features to make it more complex if you wish.

 

Most important things is the data units, flight (pirep) times are in minutes and all weight / fuel values are in pounds (lbs) for phpvms v7 database (regardless what you select for display).

Also you may need to match your old pilot id's in those pireps with new user_id's you have in your system (don't mix them up with idents, I am talking about the real database indexed id numbers of users)

Then you may need to match your old airline codes with your new airline_id's to have more matches / reflecting details.

You can probably use the same timestamps for created_at, submitted_at, updated_at fields of v7, it will not harm the system but if you have detailed times you can use them too (created_at is the time a flight is started, submitted_at is the the it gets filed etc.)

Pirep type (manual/acars), pirep state, pirep status can be same for all these imported all pireps.

 

In theory if you can match the pilot id's with their old pireps, nightly cron can re-calculate their pirep counts and times according to that data (pilots will be happy).

 

What you will lose is financial details of those pireps (can be done if you want to go that deep but I think this is not important compared to the pirep itself), and detailed acars data (like logs, flown points etc) you may have in that old system.

 

Good luck

Link to comment
Share on other sites

  • 4 weeks later...

Hello friends,

 

We are doing some migrations as well. For some reason, we are unable to get in contact with the va-schedules team at this moment.

 

How can we make this process easier in terms of migration (export/import) without having to edit over 65000 schedules by hand. What is the best way, then, to add the subfleets to the schedules to expedite importation process?

 

If someone else would have made a workaround, it would be greatly appreciated if that logic is shared.

 

Thank you in advance.

Link to comment
Share on other sites

4 hours ago, WestIndian876 said:

Hello friends,

 

We are doing some migrations as well. For some reason, we are unable to get in contact with the va-schedules team at this moment.

 

How can we make this process easier in terms of migration (export/import) without having to edit over 65000 schedules by hand. What is the best way, then, to add the subfleets to the schedules to expedite importation process?

 

If someone else would have made a workaround, it would be greatly appreciated if that logic is shared.

 

Thank you in advance.

 

Maybe you can use some sql queries to assign subfleets to flights after the import, it still may need manual corrections or some faulty assignments to be checked/fixed manually.

 

But other than importing your flights via csv files (with fleet details) I can not think of an easy end user solution/workaround.

 

  • Export your flights (either from v5 or v7, by airline if possible)
  • Edit those exported csv files to meet v7's requirements and by some tools (like excel or similar) assign your subfleets to flights in that csv
  • Import the flights

Good luck

Link to comment
Share on other sites

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...