MySQL table patcher

0. Contents

This is the documentation of sqlupdate-1.4.1.
   1. Purpose
   2. Changes
   3. Copying
   4. Requirements
   5. Downloading

1. Purpose

Reads a table creation file (tables.sql) and compares it to what mysqldump gives, and creates SQL clauses to update the database to match the creation file.
sqlupdate v1.4.1 - Copyright (C) Joel Yliluoma (http://iki.fi/bisqwit/)

Usage:
    sqlupdate [options] >changes.sql
       (Creates an update script)

Options:
    -t tablefile          Describes the file containing
                          the new sql layout. Default: tables.sql
    -d database           Default: winnie3
    -h host               Default: localhost
    -u user               Default: root
    -i                    Use CREATE INDEX instead of ALTER..ADD KEY
    -m                    Add comments explaining the differences
    -p pass
    -r                    Reverse operation. (new->old)

Example:
  ./sqlupdate -t etimgr.sql -d etimgr | mysql -uroot

This program does not update a database. It only
produces update scripts (which show the differences).

2. Changes

Since version 1.3.0, supports also the InnoDB FOREIGN KEY constraints.

Since version 1.4.0, supports TINYINT, DATE, TIME and ENUM types.
Thanks to Leigh Purdie for this change!
CHANGE ... AFTER/FIRST is not yet supported.

Since version 1.4.1, supports CREATE INDEX and field ordering.

3. Copying

sqlupdate has been written by Joel Yliluoma, a.k.a. Bisqwit,
and is distributed under the terms of the General Public License (GPL).

4. Requirements

GNU make is probably required.
mysqldump is also required. This program handles only MySQL tables indeed.

5. Downloading

The official home page of sqlupdate is at http://iki.fi/bisqwit/source/sqlupdate.html.
Check there for new versions.

Generated from progdesc.php (last updated: Thu, 01 Sep 2005 15:47:59 +0300)
with docmaker.php (last updated: Sun, 12 Jun 2005 06:08:02 +0300)
at Thu, 01 Sep 2005 15:54:29 +0300