Changes between Version 1 and Version 2 of HowToMoveFromMySQLToPostgres


Ignore:
Timestamp:
Jul 10, 2009, 4:24:00 AM (15 years ago)
Author:
heikki
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HowToMoveFromMySQLToPostgres

    v1 v2  
    4949 }}}
    5050
     51=== Database create scripts ===
     52
     53!GeoNetwork comes equipped with a create-database script for various DBMSes, also for Postgres. This one should do fine for a standard !GeoNetwork installation.
     54
     55In our case however, the installation is a modified version of !GeoNetwork ([http://www.nationaalgeoregister.nl the Dutch géoportail]). It uses an alter-database script to create some changes idiosyncratic to this project. This file is developed against MySQL. In this file I had to make some changes :
     56
     57 * change {{{int(10)}}} to {{{int}}}
     58 * change {{{LONGTEXT}}} to {{{TEXT}}}
     59 * change {{{datetime}}} to {{{varchar(24)}}}
     60 * change {{{double}}} to {{{float8}}}
     61
     62The change for {{{datetime}}} is debatable, as there also is a Postgres {{{timestamp}}} datatype. We may switch to that.
     63
    5164
    5265=== creating a database and user ===
     
    8194
    8295
    83 === Database create scripts ===
    84 
    85 TODO describe the changes
    86 
    8796=== Exporting existing data from MySQL and importing it into Postgres ===
    8897