| 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 | |
| 55 | In 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 | |
| 62 | The change for {{{datetime}}} is debatable, as there also is a Postgres {{{timestamp}}} datatype. We may switch to that. |
| 63 | |