Skip to content

Commit 22928f6

Browse files
committed
bug #45 "autoincrement" is a boolean, fix #43 (Sander Marechal)
This PR was merged into the 3.0-dev branch. Discussion ---------- "autoincrement" is a boolean, fix #43 Fixes #43 which causes unwanted schema differences when using DBAL 2.9.0 with security-acl 3.x Commits ------- e610abf "autoincrement" is a boolean, fix #43
2 parents ab4dfe2 + e610abf commit 22928f6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Dbal/Schema.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function addToSchema(BaseSchema $schema)
6666
protected function addClassTable()
6767
{
6868
$table = $this->createTable($this->options['class_table_name']);
69-
$table->addColumn('id', 'integer', array('unsigned' => true, 'autoincrement' => 'auto'));
69+
$table->addColumn('id', 'integer', array('unsigned' => true, 'autoincrement' => true));
7070
$table->addColumn('class_type', 'string', array('length' => 200));
7171
$table->setPrimaryKey(array('id'));
7272
$table->addUniqueIndex(array('class_type'));
@@ -79,7 +79,7 @@ protected function addEntryTable()
7979
{
8080
$table = $this->createTable($this->options['entry_table_name']);
8181

82-
$table->addColumn('id', 'integer', array('unsigned' => true, 'autoincrement' => 'auto'));
82+
$table->addColumn('id', 'integer', array('unsigned' => true, 'autoincrement' => true));
8383
$table->addColumn('class_id', 'integer', array('unsigned' => true));
8484
$table->addColumn('object_identity_id', 'integer', array('unsigned' => true, 'notnull' => false));
8585
$table->addColumn('field_name', 'string', array('length' => 50, 'notnull' => false));
@@ -107,7 +107,7 @@ protected function addObjectIdentitiesTable()
107107
{
108108
$table = $this->createTable($this->options['oid_table_name']);
109109

110-
$table->addColumn('id', 'integer', array('unsigned' => true, 'autoincrement' => 'auto'));
110+
$table->addColumn('id', 'integer', array('unsigned' => true, 'autoincrement' => true));
111111
$table->addColumn('class_id', 'integer', array('unsigned' => true));
112112
$table->addColumn('object_identifier', 'string', array('length' => 100));
113113
$table->addColumn('parent_object_identity_id', 'integer', array('unsigned' => true, 'notnull' => false));
@@ -144,7 +144,7 @@ protected function addSecurityIdentitiesTable()
144144
{
145145
$table = $this->createTable($this->options['sid_table_name']);
146146

147-
$table->addColumn('id', 'integer', array('unsigned' => true, 'autoincrement' => 'auto'));
147+
$table->addColumn('id', 'integer', array('unsigned' => true, 'autoincrement' => true));
148148
$table->addColumn('identifier', 'string', array('length' => 200));
149149
$table->addColumn('username', 'boolean');
150150

0 commit comments

Comments
 (0)