i18n.php

Go to the documentation of this file.
00001 <?php
00002 /* SVN FILE: $Id: cake_2console_2libs_2templates_2skel_2config_2sql_2i18n_8php-source.html 580 2008-07-01 14:45:49Z gwoo $ */
00003 /*i18n schema generated on: 2007-11-25 07:11:25 : 1196004805*/
00004 /**
00005  * This is i18n Schema file
00006  *
00007  * Use it to configure database for i18n
00008  *
00009  * PHP versions 4 and 5
00010  *
00011  * CakePHP(tm) :  Rapid Development Framework <http://www.cakephp.org/>
00012  * Copyright 2005-2008, Cake Software Foundation, Inc.
00013  *                              1785 E. Sahara Avenue, Suite 490-204
00014  *                              Las Vegas, Nevada 89104
00015  *
00016  * Licensed under The MIT License
00017  * Redistributions of files must retain the above copyright notice.
00018  *
00019  * @filesource
00020  * @copyright       Copyright 2005-2008, Cake Software Foundation, Inc.
00021  * @link                http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
00022  * @package         cake
00023  * @subpackage      cake.app.config.sql
00024  * @since           CakePHP(tm) v 0.2.9
00025  * @version         $Revision: 580 $
00026  * @modifiedby      $LastChangedBy: gwoo $
00027  * @lastmodified    $Date: 2008-07-01 09:45:49 -0500 (Tue, 01 Jul 2008) $
00028  * @license         http://www.opensource.org/licenses/mit-license.php The MIT License
00029  */
00030 /*
00031  *
00032  * Using the Schema command line utility
00033  * cake schema run create i18n
00034  *
00035  */
00036 class i18nSchema extends CakeSchema {
00037 
00038     var $name = 'i18n';
00039 
00040     function before($event = array()) {
00041         return true;
00042     }
00043 
00044     function after($event = array()) {
00045     }
00046 
00047     var $i18n = array(
00048             'id' => array('type'=>'integer', 'null' => false, 'default' => NULL, 'length' => 10, 'key' => 'primary'),
00049             'locale' => array('type'=>'string', 'null' => false, 'length' => 6, 'key' => 'index'),
00050             'model' => array('type'=>'string', 'null' => false, 'key' => 'index'),
00051             'foreign_key' => array('type'=>'integer', 'null' => false, 'length' => 10, 'key' => 'index'),
00052             'field' => array('type'=>'string', 'null' => false, 'key' => 'index'),
00053             'content' => array('type'=>'text', 'null' => true, 'default' => NULL),
00054             '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))
00055         );
00056 
00057 }
00058 ?>