Move schema definitions back into .install files.

webchick - June 28, 2007 - 05:03
Project:Drupal
Version:6.x-dev
Component:database system
Category:task
Priority:normal
Assigned:webchick
Status:duplicate
Description

It really doesn't make much sense to have a whole other file name just for schema files; rather, it's easier for new developers to put all of the "databasey kinds of stuff" in one place, and it also maintains the schema definition along with any updates modifying the schema. Barry Jaspan, one of the creators of the schema patch has said that he supports this change: http://jaspan.com/schema-api-drupal-6#comment-461

I tested an install and enabling all the modules, and it even seems to work! Woah! More testing would be appreciated though. :)

#1

webchick - June 28, 2007 - 05:04

patch.

AttachmentSize
drupal-schema-to-install-155220-1.patch 114.06 KB

#2

Ralf - June 28, 2007 - 07:52

+1

Barry's thread http://drupal.org/node/150245

#3

webchick - June 28, 2007 - 13:17
Status:needs review» duplicate

Oops. Thanks! Posted the patch over there.

 
 

Drupal is a registered trademark of Dries Buytaert.