function tripal_core_install
2.x tripal_core.install | tripal_core_install() |
3.x tripal_core.install | tripal_core_install() |
1.x tripal_core.install | tripal_core_install() |
Implementation of hook_install().
Related topics
File
- tripal_core/
tripal_core.install, line 12 - Contains functions used to install/uninstall tripal_core.
Code
function tripal_core_install() {
// The foreign key specification doesn't really add one to the
// Drupal schema, it is just used internally, but we want one.
db_query('
ALTER TABLE {tripal_custom_tables}
ADD CONSTRAINT tripal_custom_tables_fk1
FOREIGN KEY (mview_id) REFERENCES {tripal_mviews} (mview_id)
ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED
');
}