<?php
  /*

      upgrade.0.9.1.inc.php

      Upgrades database to v0.9.1

      Changelog:
        2005-07-15 arne_sf: Buffers output in array instead of displaying it immediately
        2005-04-30 arne_sf: Initial version, rebuilds three sequences
        
      ----

      Copyright (C) 2005  Arne (arne_sf@users.sourceforge.net)

      This program is free software; you can redistribute it and/or
      modify it under the terms of the GNU General Public License
      as published by the Free Software Foundation version 2.

      This program is distributed in the hope that it will be useful,
      but WITHOUT ANY WARRANTY; without even the implied warranty of
      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      GNU General Public License for more details.

      You should have received a copy of the GNU General Public License
      along with this program; if not, write to the Free Software
      Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

  */
    
    // Sequence tbl_Issues_id
    $res = rebuild_sequence('tbl_Issues', 'id', 'tbl_Issues_id');
    $output[] = "Rebuilding tbl_Issues_id sequence ....... " . ($res === TRUE ? "Success!" : $res) . "<BR />\n";

    // Sequence tbl_Domains_id
    $res = rebuild_sequence('tbl_Domains', 'id', 'tbl_Domains_id');
    $output[] = "Rebuilding tbl_Domains_id sequence ....... " . ($res === TRUE ? "Success!" : $res) . "<BR />\n";

    // Sequence tbl_Users_id
    $res = rebuild_sequence('tbl_Users', 'id', 'tbl_Users_id');
    $output[] = "Rebuilding tbl_Users_id sequence ....... " . ($res === TRUE ? "Success!" : $res) . "<BR />\n";

?>
