Skip to content

Commit

Permalink
Renaming schema.php to cake_schema.php. Modifying relevant App::impor…
Browse files Browse the repository at this point in the history
…t calls.
  • Loading branch information
jperras committed Mar 16, 2009
1 parent 527b1f9 commit 70e0316
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cake/console/libs/schema.php
Expand Up @@ -26,7 +26,7 @@
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/
App::import('File');
App::import('Model', 'Schema');
App::import('Model', 'CakeSchema');
/**
* Schema is a command-line database management utility for automating programmer chores.
*
Expand Down
2 changes: 1 addition & 1 deletion cake/console/libs/tasks/model.php
Expand Up @@ -832,7 +832,7 @@ function help() {
*/
function fixture($model, $useTable = null) {
if (!class_exists('CakeSchema')) {
App::import('Model', 'Schema');
App::import('Model', 'CakeSchema');
}
$out = "\nclass {$model}Fixture extends CakeTestFixture {\n";
$out .= "\tvar \$name = '$model';\n";
Expand Down
File renamed without changes.
Expand Up @@ -23,7 +23,7 @@
* @lastmodified $Date$
* @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
*/
App::import('Core', 'Schema');
App::import('Core', 'CakeSchema');

/**
* Test for Schema database management
Expand Down
Expand Up @@ -509,7 +509,7 @@ function testColumn() {
* @return void
*/
function testAlterSchemaIndexes() {
App::import('Core', 'Schema');
App::import('Core', 'CakeSchema');
$this->db->cacheSources = $this->db->testing = false;

$schema1 =& new CakeSchema(array(
Expand Down
2 changes: 1 addition & 1 deletion cake/tests/lib/cake_test_fixture.php
Expand Up @@ -50,7 +50,7 @@ class CakeTestFixture extends Object {
* @access public
*/
function __construct() {
App::import('Model', 'Schema');
App::import('Model', 'CakeSchema');
$this->Schema = new CakeSchema(array('name' => 'TestSuite', 'connection' => 'test_suite'));

$this->init();
Expand Down

0 comments on commit 70e0316

Please sign in to comment.