Installing SQL files with PEAR packages

Henri Bergius <henri.bergius-ZpG/[email protected]> Fri, 24 Feb 2006 16:00:18 +0200
Newsgroups gmane.comp.web.midgard.devel
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!

There is now a new file role "midgardsql" for handling SQL files  
components want to install. These SQL files can be used for creating  
the tables used by the components' MgdSchemas, setting indexes and so  
forth.

PEAR packager helper will pick up the file named "config/ 
mgdschema.sql" under the component directory and handle it through  
this role.

When the package is installed, this file will be placed under  
"midgardsql_dir", by default /usr/share/midgard/sql/update

This directory is used by datagard, which will import all SQL files  
from it when "database update" is performed.

The "Midgard SQL Role" is available as package midcom/Role_Midgardsql.

/Bergie

Henri Bergius
Consultant Partner, Nemein
henri.bergius-ZpG/[email protected]

Midgard CMS
www.midgard-project.org



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFD/xF0NkT8k497k9IRAnMxAKDK6KCG7txp2cY7vlpg7E9rrxNc4QCdGD2y
j9tqwOSoo2Nd5Fr5MGS0NFc=
=gPzc
-----END PGP SIGNATURE-----