[Koha-devel] Preposed sql script filename change

Galen Charlton galen.charlton at liblime.com
Thu Nov 8 23:27:53 CET 2007


Hi,

On 11/8/07, Chris Nighswonger <cnighswonger at foundations.edu> wrote:
[snip]
>   In the process of the port, I have needed to distinguish between sql
> files for MySQL and PostgreSQL. I have been doing this by renaming sql
> files after this method:
>
> foo_mysql.sql
> foo_pg.sql
>
> This allows me to do things like '~ /_mysql\.sql/' etc. and import the
> correct flavor of sql.

I would suggest setting up a directory tree for each DB engine, e.g.,

installer/data/mysql [../en/mandatory/..., e.g.]
installer/data/postgres

That way, install.pl only needs to point to the correct directory,
instead of munging each file name, and we don't have to rename the
existing SQL scripts, just move them.

Regards,

Galen
-- 
Galen Charlton
Koha Application Developer
LibLime
galen.charlton at liblime.com
p: 1-888-564-2457





More information about the Koha-devel mailing list