Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
13532 anikendra 1
<?php
2
/**
3
 * This is i18n Schema file
4
 *
5
 * Use it to configure database for i18n
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       app.Config.Schema
17
 * @since         CakePHP(tm) v 0.2.9
18
 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
19
 */
20
 
21
/**
22
 *
23
 * Using the Schema command line utility
24
 *
25
 * Use it to configure database for i18n
26
 *
27
 * cake schema run create i18n
28
 */
29
class I18nSchema extends CakeSchema {
30
 
31
	public $name = 'i18n';
32
 
33
	public function before($event = array()) {
34
		return true;
35
	}
36
 
37
	public function after($event = array()) {
38
	}
39
 
40
	public $i18n = array(
41
		'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'length' => 10, 'key' => 'primary'),
42
		'locale' => array('type' => 'string', 'null' => false, 'length' => 6, 'key' => 'index'),
43
		'model' => array('type' => 'string', 'null' => false, 'key' => 'index'),
44
		'foreign_key' => array('type' => 'integer', 'null' => false, 'length' => 10, 'key' => 'index'),
45
		'field' => array('type' => 'string', 'null' => false, 'key' => 'index'),
46
		'content' => array('type' => 'text', 'null' => true, 'default' => null),
47
		'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1), 'locale' => array('column' => 'locale', 'unique' => 0), 'model' => array('column' => 'model', 'unique' => 0), 'row_id' => array('column' => 'foreign_key', 'unique' => 0), 'field' => array('column' => 'field', 'unique' => 0))
48
	);
49
 
50
}