php - Cake schema create --file not working -


i'm trying roll backed schema file called backup_7_10_2013.php

im in /applications/mamp/htdocs/cakecms/ directory when run

cake schema create -- file backup_7_10_2013

i following error:

the chosen schema not loaded. attempted load: file: /applications/mamp/htdocs/cakecms/config/schema/backup_7_10_2013.php name: cakecms

the contents of backup_7_10_2013.php file are:

<?php  class backup7102013schema extends cakeschema {      public function before($event = array()) {         return true;     }      public function after($event = array()) {     }      public $posts = array(         'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'key' => 'primary'),         'title' => array('type' => 'string', 'null' => false, 'default' => null, 'length' => 100, 'collate' => 'latin1_swedish_ci', 'charset' => 'latin1'),         'body' => array('type' => 'text', 'null' => false, 'default' => null, 'collate' => 'latin1_swedish_ci', 'charset' => 'latin1'),         'created' => array('type' => 'datetime', 'null' => false, 'default' => null),         'modified' => array('type' => 'datetime', 'null' => false, 'default' => null),         'published' => array('type' => 'datetime', 'null' => false, 'default' => null),         'indexes' => array(             'primary' => array('column' => 'id', 'unique' => 1)         ),         'tableparameters' => array('charset' => 'latin1', 'collate' => 'latin1_swedish_ci', 'engine' => 'innodb')     );  } 


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -