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
 * @link          http://cakephp.org CakePHP(tm) Project
8
 * @package       app.Config.Schema
9
 * @since         CakePHP(tm) v 0.2.9
10
 */
11
 
12
/**
13
 *
14
 * Using the Schema command line utility
15
 *
16
 * Use it to configure database for i18n
17
 *
18
 * cake schema run create i18n
19
 */
20
class I18nSchema extends CakeSchema {
21
 
22
	public $name = 'i18n';
23
 
24
	public function before($event = array()) {
25
		return true;
26
	}
27
 
28
	public function after($event = array()) {
29
	}
30
 
31
	public $i18n = array(
32
		'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'length' => 10, 'key' => 'primary'),
33
		'locale' => array('type' => 'string', 'null' => false, 'length' => 6, 'key' => 'index'),
34
		'model' => array('type' => 'string', 'null' => false, 'key' => 'index'),
35
		'foreign_key' => array('type' => 'integer', 'null' => false, 'length' => 10, 'key' => 'index'),
36
		'field' => array('type' => 'string', 'null' => false, 'key' => 'index'),
37
		'content' => array('type' => 'text', 'null' => true, 'default' => null),
38
		'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))
39
	);
40
 
41
}