1: <?php
2:
3:
4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26:
27: 28: 29: 30: 31: 32:
33: class i18nSchema extends CakeSchema {
34:
35: var $name = 'i18n';
36:
37: function before($event = array()) {
38: return true;
39: }
40:
41: function after($event = array()) {
42: }
43:
44: var $i18n = array(
45: 'id' => array('type'=>'integer', 'null' => false, 'default' => NULL, 'length' => 10, 'key' => 'primary'),
46: 'locale' => array('type'=>'string', 'null' => false, 'length' => 6, 'key' => 'index'),
47: 'model' => array('type'=>'string', 'null' => false, 'key' => 'index'),
48: 'foreign_key' => array('type'=>'integer', 'null' => false, 'length' => 10, 'key' => 'index'),
49: 'field' => array('type'=>'string', 'null' => false, 'key' => 'index'),
50: 'content' => array('type'=>'text', 'null' => true, 'default' => NULL),
51: '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))
52: );
53:
54: }
55: ?>