function updateTables($version)
{
    Auth::updateTables($version);
    Comment::updateTables($version);
    Feedback::updateTables($version);
    Journal::updateTables($version);
    Media::updateTables($version);
    Setting::updateTables($version);
    Trip::updateTables($version);
    TripAttribute::updateTables($version);
    TripUser::updateTables($version);
    User::updateTables($version);
    print "Tables have been updated. ";
}
 public function testUpdateDatabase()
 {
     $version = Setting::getDataVersion();
     $this->assertTrue(Auth::updateTables($version, ''));
     $this->assertTrue(Comment::updateTables($version, ''));
     $this->assertTrue(Feedback::updateTables($version, ''));
     $this->assertTrue(Journal::updateTables($version, ''));
     $this->assertTrue(Media::updateTables($version, ''));
     $this->assertTrue(Trip::updateTables($version, ''));
     $this->assertTrue(TripAttribute::updateTables($version, ''));
     $this->assertTrue(TripUser::updateTables($version, ''));
     $this->assertTrue(User::updateTables($version, ''));
     // Note: make sure the Settings::updateTables is last: when any of the
     // above fail, the data version in the database should NOT be updated!
     $this->assertTrue(Setting::updateTables($version, ''));
 }