Permalink
Browse files

Correcting path that CakeSchema looks for schema files in.

  • Loading branch information...
markstory committed Aug 1, 2009
1 parent b2ac766 commit 3aa6d22c2cdc9bd4e597614c58788291acc36843
Showing with 2 additions and 1 deletion.
  1. +2 −1 cake/libs/model/cake_schema.php
@@ -90,7 +90,7 @@ function __construct($options = array()) {
}
if (empty($options['path'])) {
- $this->path = CONFIGS . 'sql';
+ $this->path = CONFIGS . 'schema';
}
$options = array_merge(get_object_vars($this), $options);
@@ -161,6 +161,7 @@ function load($options = array()) {
extract(get_object_vars($this));
$class = $name .'Schema';
+
if (!class_exists($class)) {
if (file_exists($path . DS . $file) && is_file($path . DS . $file)) {
require_once($path . DS . $file);

0 comments on commit 3aa6d22

Please sign in to comment.