[development] Install Schema
Bob Hutchinson
hutchlists at midwales.com
Thu Aug 6 22:15:24 UTC 2009
On Thursday 06 August 2009, Damian Adriel Perez Valdes wrote:
> Thank's so much.
>
> On Thu, Aug 6, 2009 at 3:45 PM, Earl Miles <merlin at logrus.com> wrote:
> > Damian Adriel Perez Valdes wrote:
> >> Hi:
> >>
> >> How can i install a table in mysql.
> >>
> >> I tried with this script but don't work.
> >>
> >> function tags_schema() {
> >> $schema['table'] = array(
> >>
> > > // .... cut for clarity ....
> >>
> >> 'unique keys' => array(
> >> 'nid_vid' => array('nid', 'vid'),
> >> 'vid' => array('vid')
> >> ),
> >> 'primary key' => array('nid'),
> >> );
> >> }
> >
> > You lack a return statement.
You can build the table with phpmyadmin and use the schema module to give you
the $schema code, much easier than handrolling.
--
-----------------
Bob Hutchinson
Midwales dot com
-----------------
More information about the development
mailing list