mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-09 04:52:42 +00:00
Renaming schema.php to cake_schema.php. Modifying relevant App::import calls.
This commit is contained in:
parent
527b1f9cc8
commit
70e0316cd2
6 changed files with 5 additions and 5 deletions
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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
|
|
@ -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(
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue