Changeset 5751
- Timestamp:
- 10/29/07 18:33:44 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfPropelAlternativeSchemaPlugin/lib/sfPropelDatabaseSchema.class.php
r5746 r5751 440 440 'required' => true, 441 441 'primaryKey' => true, 442 'auto increment' => true442 'autoIncrement' => true 443 443 ); 444 444 $has_primary_key = true; … … 494 494 'required' => true, 495 495 'primaryKey' => true, 496 'auto increment' => true496 'autoIncrement' => true 497 497 ); 498 498 } … … 600 600 if (is_array($column) && isset($column['index'])) 601 601 { 602 if ($column['index'] == 'unique')602 if ($column['index'] === 'unique') 603 603 { 604 604 $attributes_string .= " <unique name=\"${tb_name}_${col_name}_unique\">\n"; … … 898 898 foreach ($columns as $column => $attributes) 899 899 { 900 if ($column == 'id' && !array_diff($attributes, array('type' => 'integer', 'required' => 'true', 'primaryKey' => 'true', 'auto increment' => 'true')))900 if ($column == 'id' && !array_diff($attributes, array('type' => 'integer', 'required' => 'true', 'primaryKey' => 'true', 'autoIncrement' => 'true'))) 901 901 { 902 902 // simplify primary keys plugins/sfPropelAlternativeSchemaPlugin/test/unit/fixtures/schema.xml
r5578 r5751 3 3 4 4 <table name="ab_group" phpName="Group" package="foo.bar.lib.model" isI18N="true" i18nTable="ab_group_i18n"> 5 <column name="id" type="integer" required="true" primaryKey="true" auto increment="true" />5 <column name="id" type="integer" required="true" primaryKey="true" autoIncrement="true" /> 6 6 <column name="name" type="varchar" size="50" /> 7 7 </table> … … 19 19 </foreign-key> 20 20 <column name="created_at" type="timestamp" /> 21 <column name="id" type="integer" required="true" primaryKey="true" auto increment="true" />21 <column name="id" type="integer" required="true" primaryKey="true" autoIncrement="true" /> 22 22 </table> 23 23 … … 58 58 <column name="user_id" type="integer" /> 59 59 <column name="created_at" type="timestamp" /> 60 <column name="id" type="integer" required="true" primaryKey="true" auto increment="true" />60 <column name="id" type="integer" required="true" primaryKey="true" autoIncrement="true" /> 61 61 <index name="my_index"> 62 62 <index-column name="title" />