| 13532 |
anikendra |
1 |
<?php
|
|
|
2 |
/**
|
|
|
3 |
* TestAppSchema file
|
|
|
4 |
*
|
|
|
5 |
* Use for testing the loading of schema files from plugins.
|
|
|
6 |
*
|
|
|
7 |
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
|
|
|
8 |
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
|
|
9 |
*
|
|
|
10 |
* Licensed under The MIT License
|
|
|
11 |
* For full copyright and license information, please see the LICENSE.txt
|
|
|
12 |
* Redistributions of files must retain the above copyright notice.
|
|
|
13 |
*
|
|
|
14 |
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
|
|
15 |
* @link http://cakephp.org CakePHP(tm) Project
|
|
|
16 |
* @package Cake.Test.TestApp.Plugin.TestPlugin.Config.Schema
|
|
|
17 |
* @since CakePHP(tm) v 1.3
|
|
|
18 |
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
|
|
19 |
*/
|
|
|
20 |
|
|
|
21 |
/**
|
|
|
22 |
* Class TestPluginAppSchema
|
|
|
23 |
*
|
|
|
24 |
* @package Cake.Test.TestApp.Plugin.TestPlugin.Config.Schema
|
|
|
25 |
*/
|
|
|
26 |
class TestPluginAppSchema extends CakeSchema {
|
|
|
27 |
|
|
|
28 |
public $name = 'TestPluginApp';
|
|
|
29 |
|
|
|
30 |
public $test_plugin_acos = array(
|
|
|
31 |
'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'length' => 10, 'key' => 'primary'),
|
|
|
32 |
'parent_id' => array('type' => 'integer', 'null' => true, 'default' => null, 'length' => 10),
|
|
|
33 |
'model' => array('type' => 'string', 'null' => true),
|
|
|
34 |
'foreign_key' => array('type' => 'integer', 'null' => true, 'default' => null, 'length' => 10),
|
|
|
35 |
'alias' => array('type' => 'string', 'null' => true),
|
|
|
36 |
'lft' => array('type' => 'integer', 'null' => true, 'default' => null, 'length' => 10),
|
|
|
37 |
'rght' => array('type' => 'integer', 'null' => true, 'default' => null, 'length' => 10),
|
|
|
38 |
'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1))
|
|
|
39 |
);
|
|
|
40 |
}
|