Skip to content

Commit

Permalink
Reducing code related to CakeSchema. Fixes #1477
Browse files Browse the repository at this point in the history
  • Loading branch information
Maggion Emmanuel authored and markstory committed Jan 29, 2011
1 parent 3575053 commit 01801a7
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 37 deletions.
9 changes: 0 additions & 9 deletions app/config/schema/db_acl.php
Expand Up @@ -27,15 +27,6 @@
*/
class DbAclSchema extends CakeSchema {

public $name = 'DbAcl';

function before($event = array()) {
return true;
}

function after($event = array()) {
}

public $acos = array(
'id' => array('type'=>'integer', 'null' => false, 'default' => NULL, 'length' => 10, 'key' => 'primary'),
'parent_id' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10),
Expand Down
9 changes: 0 additions & 9 deletions app/config/schema/i18n.php
Expand Up @@ -27,15 +27,6 @@
*/
class i18nSchema extends CakeSchema {

public $name = 'i18n';

function before($event = array()) {
return true;
}

function after($event = array()) {
}

public $i18n = array(
'id' => array('type'=>'integer', 'null' => false, 'default' => NULL, 'length' => 10, 'key' => 'primary'),
'locale' => array('type'=>'string', 'null' => false, 'length' => 6, 'key' => 'index'),
Expand Down
9 changes: 0 additions & 9 deletions app/config/schema/sessions.php
Expand Up @@ -27,15 +27,6 @@
*/
class SessionsSchema extends CakeSchema {

public $name = 'Sessions';

function before($event = array()) {
return true;
}

function after($event = array()) {
}

public $cake_sessions = array(
'id' => array('type'=>'string', 'null' => false, 'key' => 'primary'),
'data' => array('type'=>'text', 'null' => true, 'default' => NULL),
Expand Down
10 changes: 0 additions & 10 deletions cake/libs/model/cake_schema.php
Expand Up @@ -26,14 +26,6 @@
*/
class CakeSchema extends Object {

/**
* Name of the App Schema
*
* @var string
* @access public
*/
public $name = null;

/**
* Path to write location
*
Expand Down Expand Up @@ -337,8 +329,6 @@ public function write($object, $options = array()) {

$out = "class {$name}Schema extends CakeSchema {\n";

$out .= "\tvar \$name = '{$name}';\n\n";

if ($path !== $this->path) {
$out .= "\tvar \$path = '{$path}';\n\n";
}
Expand Down

0 comments on commit 01801a7

Please sign in to comment.