Mercurial > hg > Members > shoshi > webvirt
comparison cake/tests/test_app/plugins/test_plugin/config/schema/schema.php @ 0:261e66bd5a0c
hg init
author | Shoshi TAMAKI <shoshi@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 24 Jul 2011 21:08:31 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:261e66bd5a0c |
---|---|
1 <?php | |
2 /** | |
3 * TestAppSchema file | |
4 * | |
5 * Use for testing the loading of schema files from plugins. | |
6 * | |
7 * PHP versions 4 and 5 | |
8 * | |
9 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) | |
10 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) | |
11 * | |
12 * Licensed under The MIT License | |
13 * Redistributions of files must retain the above copyright notice. | |
14 * | |
15 * @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) | |
16 * @link http://cakephp.org CakePHP(tm) Project | |
17 * @package cake | |
18 * @subpackage cake.app.config.sql | |
19 * @since CakePHP(tm) v 1.3 | |
20 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) | |
21 */ | |
22 class TestPluginAppSchema extends CakeSchema { | |
23 | |
24 var $name = 'TestPluginApp'; | |
25 | |
26 var $acos = array( | |
27 'id' => array('type'=>'integer', 'null' => false, 'default' => NULL, 'length' => 10, 'key' => 'primary'), | |
28 'parent_id' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10), | |
29 'model' => array('type'=>'string', 'null' => true), | |
30 'foreign_key' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10), | |
31 'alias' => array('type'=>'string', 'null' => true), | |
32 'lft' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10), | |
33 'rght' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10), | |
34 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1)) | |
35 ); | |
36 } |