magicbug / Cloudlog

Web based amateur radio logging application built using PHP & MySQL supports general station logging tasks from HF to Microwave with supporting applications to support CAT control.
http://www.cloudlog.co.uk
MIT License
460 stars 190 forks source link

Updating sql database #156

Closed n3tuq closed 8 years ago

n3tuq commented 10 years ago

Not sure if this is the place to ask this.

I tried updating Cloudlog by uploading the new files but I'm not sure how to upgrade the sql database.

Thank you, Kurt

skweeker commented 10 years ago

Hi Kurt!

There's some DB update stuff in the migration files in application/migrations/. You'll notice that these files are numbered. That number corresponds to the migration_version which is set in application/config/migration.php. You'll want this number to be the highest migration level... if the highest numbered migration file is 004, put a 4 for the migration_version.

When the application loads, it checks the migration level against the migrations that have been run, and will migrate up (or down) to get to the migration version set in the config.

Does that help at all?

Corby, K0SKW

n3tuq commented 10 years ago

Got it working. Thanks for the great project.

Kurt