[development] no date / time types in schema API
gerhard at killesreiter.de
Wed Jul 2 10:47:48 UTC 2008
-----BEGIN PGP SIGNED MESSAGE-----
augustin (beginner) schrieb:
> All (but one) SQL dialects have a date type.
> However, Drupal's Schema API does not seem to have a type for date
> only: http://drupal.org/node/159605
> It causes schema.module to complain: no type for Schema type
> date:normal. I am concerned that with the new Schema API, my
> modules may not install properly anymore. (how can it install a
> table where a column has an unsupported type?)
Just do a normal db_query. I've had to do that for event.module since
it needs a time type.
> Is this a purposeful omission?
IIRC it was decided that "nobody needs it" or "it is too complicated
because of pgsql".
IMO it's a bug.
> How are you all coping with the lack of time/date data type? What
> workarounds do you use?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
-----END PGP SIGNATURE-----
More information about the development