[development] SQL To D6 Schema Conversion Script?

Earl Dunovant prometheus6 at gmail.com
Wed Apr 2 08:44:45 UTC 2008


It works, but you have to delete the disp-width key from the field
definition arrays it provides.

On Wed, Apr 2, 2008 at 4:19 AM, Angela Byron <drupal-devel at webchick.net> wrote:
>
> Nancy Wichmann wrote:
>
> > Karoly Negyesi wrote:
> >
> > >
> > > > see schema.module in contrib.
> > > >
> > >
> >
> >
> > > I installed that when working on the registry patch and was not really
> able
> > >
> > to find where can I get the schema
> >
> > >  definiton of the not-yet-defined registry table. I might have missed
> > >
> > something absolutely obvious.
> >
> > There is an "Inspect" tab that will show you proposed schema for all
> unknown
> > tables.  I just copy and paste - with a bit of reformatting.  Voila!
> > Instant hook_schema.
> >
>
>  Can you confirm that this works? I tried with 6.x-1.2 with a new "foo"
> table I'd created by hand in PHPMyAdmin, and got a notice, a warning, and an
> empty schema array apart from the primary key.
>
>  http://drupal.org/node/223952
>
>  I also noticed an inspectschema module in Frando's sandbox but that has
> fatal errors.
>
>  Am I missing something obvious?
>  -Angie
>


More information about the development mailing list