Reducing code related to CakeSchema. Fixes #1477

This commit is contained in:
Maggion Emmanuel 2011-01-25 18:16:47 +01:00 committed by mark_story
parent 3575053463
commit 01801a7777
4 changed files with 0 additions and 37 deletions

View file

@ -27,15 +27,6 @@
*/ */
class DbAclSchema extends CakeSchema { class DbAclSchema extends CakeSchema {
public $name = 'DbAcl';
function before($event = array()) {
return true;
}
function after($event = array()) {
}
public $acos = array( public $acos = array(
'id' => array('type'=>'integer', 'null' => false, 'default' => NULL, 'length' => 10, 'key' => 'primary'), 'id' => array('type'=>'integer', 'null' => false, 'default' => NULL, 'length' => 10, 'key' => 'primary'),
'parent_id' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10), 'parent_id' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10),

View file

@ -27,15 +27,6 @@
*/ */
class i18nSchema extends CakeSchema { class i18nSchema extends CakeSchema {
public $name = 'i18n';
function before($event = array()) {
return true;
}
function after($event = array()) {
}
public $i18n = array( public $i18n = array(
'id' => array('type'=>'integer', 'null' => false, 'default' => NULL, 'length' => 10, 'key' => 'primary'), 'id' => array('type'=>'integer', 'null' => false, 'default' => NULL, 'length' => 10, 'key' => 'primary'),
'locale' => array('type'=>'string', 'null' => false, 'length' => 6, 'key' => 'index'), 'locale' => array('type'=>'string', 'null' => false, 'length' => 6, 'key' => 'index'),

View file

@ -27,15 +27,6 @@
*/ */
class SessionsSchema extends CakeSchema { class SessionsSchema extends CakeSchema {
public $name = 'Sessions';
function before($event = array()) {
return true;
}
function after($event = array()) {
}
public $cake_sessions = array( public $cake_sessions = array(
'id' => array('type'=>'string', 'null' => false, 'key' => 'primary'), 'id' => array('type'=>'string', 'null' => false, 'key' => 'primary'),
'data' => array('type'=>'text', 'null' => true, 'default' => NULL), 'data' => array('type'=>'text', 'null' => true, 'default' => NULL),

View file

@ -26,14 +26,6 @@ App::import('Core', 'ConnectionManager');
*/ */
class CakeSchema extends Object { class CakeSchema extends Object {
/**
* Name of the App Schema
*
* @var string
* @access public
*/
public $name = null;
/** /**
* Path to write location * Path to write location
* *
@ -337,8 +329,6 @@ class CakeSchema extends Object {
$out = "class {$name}Schema extends CakeSchema {\n"; $out = "class {$name}Schema extends CakeSchema {\n";
$out .= "\tvar \$name = '{$name}';\n\n";
if ($path !== $this->path) { if ($path !== $this->path) {
$out .= "\tvar \$path = '{$path}';\n\n"; $out .= "\tvar \$path = '{$path}';\n\n";
} }