Skip to content
This repository has been archived by the owner on Feb 9, 2023. It is now read-only.

Commit

Permalink
removed test.
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelgbanks committed Oct 13, 2011
1 parent 4fc63cb commit ae86b18
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions content_model_viewer.install
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ function content_model_viewer_install() {
* On Delete of a Settings all tables with foreign key constrains will cascade the deletes.
*/
function content_model_viewer_add_foreign_key_constraints() {
return;
/*$table = CONTENT_MODEL_VIEWER_SETTINGS_TABLE;
$table = CONTENT_MODEL_VIEWER_SETTINGS_TABLE;
$constraint_query = <<<EOT
ALTER TABLE `%table%` ADD CONSTRAINT `%table%_model_id`
FOREIGN KEY (`model_id`)
Expand All @@ -43,7 +42,7 @@ EOT;
foreach ($tables as $table) {
$query = str_replace('%table%', $table, $constraint_query);
db_query($query);
}*/
}
}

/**
Expand Down

0 comments on commit ae86b18

Please sign in to comment.