Renaming schema.php to cake_schema.php. Modifying relevant App::import calls.

This commit is contained in:
jperras 2009-03-15 22:22:18 -04:00
parent 527b1f9cc8
commit 70e0316cd2
6 changed files with 5 additions and 5 deletions

View file

@ -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.
*

View file

@ -832,7 +832,7 @@ class ModelTask extends Shell {
*/
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";

View file

@ -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

View file

@ -509,7 +509,7 @@ class DboMysqlTest extends CakeTestCase {
* @return void
*/
function testAlterSchemaIndexes() {
App::import('Core', 'Schema');
App::import('Core', 'CakeSchema');
$this->db->cacheSources = $this->db->testing = false;
$schema1 =& new CakeSchema(array(

View file

@ -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();