pictcode / lib / Cake / Test / Fixture / UnsignedFixture.php @ 635eef61
履歴 | 表示 | アノテート | ダウンロード (1.832 KB)
1 | 635eef61 | spyder1211 | <?php
|
---|---|---|---|
2 | /**
|
||
3 | * Short description for file.
|
||
4 | *
|
||
5 | * PHP 5
|
||
6 | *
|
||
7 | * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
|
||
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://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
|
||
16 | * @package Cake.Test.Fixture
|
||
17 | * @since CakePHP(tm) v 2.5.0
|
||
18 | * @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||
19 | */
|
||
20 | |||
21 | /**
|
||
22 | * Short description for class.
|
||
23 | *
|
||
24 | * @package Cake.Test.Fixture
|
||
25 | */
|
||
26 | class UnsignedFixture extends CakeTestFixture { |
||
27 | |||
28 | /**
|
||
29 | * table property
|
||
30 | *
|
||
31 | * @var array
|
||
32 | */
|
||
33 | public $table = 'unsigned'; |
||
34 | |||
35 | /**
|
||
36 | * fields property
|
||
37 | *
|
||
38 | * @var array
|
||
39 | */
|
||
40 | public $fields = array( |
||
41 | 'uinteger' => array('type' => 'integer', 'null' => '', 'default' => '1', 'length' => '8', 'key' => 'primary', 'unsigned' => true), |
||
42 | 'integer' => array('type' => 'integer', 'length' => '8', 'unsigned' => false), |
||
43 | 'udecimal' => array('type' => 'decimal', 'length' => '4', 'unsigned' => true), |
||
44 | 'decimal' => array('type' => 'decimal', 'length' => '4'), |
||
45 | 'biginteger' => array('type' => 'biginteger', 'length' => '20', 'default' => 3), |
||
46 | 'ubiginteger' => array('type' => 'biginteger', 'length' => '20', 'default' => 3, 'unsigned' => true), |
||
47 | 'float' => array('type' => 'float', 'length' => '4'), |
||
48 | 'ufloat' => array('type' => 'float', 'length' => '4', 'unsigned' => true), |
||
49 | 'string' => array('type' => 'string', 'length' => '4'), |
||
50 | 'tableParameters' => array( |
||
51 | 'engine' => 'MyISAM' |
||
52 | ) |
||
53 | ); |
||
54 | |||
55 | /**
|
||
56 | * records property
|
||
57 | *
|
||
58 | * @var array
|
||
59 | */
|
||
60 | public $records = array(); |
||
61 | } |