diff options
author | daFish <dafish@soundtrack-board.de> | 2012-08-13 14:02:41 +0200 |
---|---|---|
committer | daFish <dafish@soundtrack-board.de> | 2012-08-13 14:02:41 +0200 |
commit | 22d0c52e9244c408e64e5b9710771eeb0f7b92ea (patch) | |
tree | c625e4c8a227bb272ba453e8cefa4b402c278d96 | |
parent | 3d7bc6981737b48b504afbc9813c1a491cdfa4c1 (diff) | |
download | symfony-security-22d0c52e9244c408e64e5b9710771eeb0f7b92ea.zip symfony-security-22d0c52e9244c408e64e5b9710771eeb0f7b92ea.tar.gz symfony-security-22d0c52e9244c408e64e5b9710771eeb0f7b92ea.tar.bz2 |
Removed MySQL-exclusive usage of unsigned integer from table creation
-rw-r--r-- | Acl/Dbal/Schema.php | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/Acl/Dbal/Schema.php b/Acl/Dbal/Schema.php index fd25926..7ab5a12 100644 --- a/Acl/Dbal/Schema.php +++ b/Acl/Dbal/Schema.php @@ -66,7 +66,7 @@ final class Schema extends BaseSchema protected function addClassTable() { $table = $this->createTable($this->options['class_table_name']); - $table->addColumn('id', 'integer', array('unsigned' => true, 'autoincrement' => 'auto')); + $table->addColumn('id', 'integer', array('autoincrement' => 'auto')); $table->addColumn('class_type', 'string', array('length' => 200)); $table->setPrimaryKey(array('id')); $table->addUniqueIndex(array('class_type')); @@ -79,12 +79,12 @@ final class Schema extends BaseSchema { $table = $this->createTable($this->options['entry_table_name']); - $table->addColumn('id', 'integer', array('unsigned' => true, 'autoincrement' => 'auto')); - $table->addColumn('class_id', 'integer', array('unsigned' => true)); - $table->addColumn('object_identity_id', 'integer', array('unsigned' => true, 'notnull' => false)); + $table->addColumn('id', 'integer', array('autoincrement' => 'auto')); + $table->addColumn('class_id', 'integer'); + $table->addColumn('object_identity_id', 'integer', array('notnull' => false)); $table->addColumn('field_name', 'string', array('length' => 50, 'notnull' => false)); - $table->addColumn('ace_order', 'smallint', array('unsigned' => true)); - $table->addColumn('security_identity_id', 'integer', array('unsigned' => true)); + $table->addColumn('ace_order', 'smallint'); + $table->addColumn('security_identity_id', 'integer'); $table->addColumn('mask', 'integer'); $table->addColumn('granting', 'boolean'); $table->addColumn('granting_strategy', 'string', array('length' => 30)); @@ -107,10 +107,10 @@ final class Schema extends BaseSchema { $table = $this->createTable($this->options['oid_table_name']); - $table->addColumn('id', 'integer', array('unsigned' => true, 'autoincrement' => 'auto')); - $table->addColumn('class_id', 'integer', array('unsigned' => true)); + $table->addColumn('id', 'integer', array('autoincrement' => 'auto')); + $table->addColumn('class_id', 'integer'); $table->addColumn('object_identifier', 'string', array('length' => 100)); - $table->addColumn('parent_object_identity_id', 'integer', array('unsigned' => true, 'notnull' => false)); + $table->addColumn('parent_object_identity_id', 'integer', array('notnull' => false)); $table->addColumn('entries_inheriting', 'boolean'); $table->setPrimaryKey(array('id')); @@ -127,8 +127,8 @@ final class Schema extends BaseSchema { $table = $this->createTable($this->options['oid_ancestors_table_name']); - $table->addColumn('object_identity_id', 'integer', array('unsigned' => true)); - $table->addColumn('ancestor_id', 'integer', array('unsigned' => true)); + $table->addColumn('object_identity_id', 'integer'); + $table->addColumn('ancestor_id', 'integer'); $table->setPrimaryKey(array('object_identity_id', 'ancestor_id')); @@ -144,7 +144,7 @@ final class Schema extends BaseSchema { $table = $this->createTable($this->options['sid_table_name']); - $table->addColumn('id', 'integer', array('unsigned' => true, 'autoincrement' => 'auto')); + $table->addColumn('id', 'integer', array('autoincrement' => 'auto')); $table->addColumn('identifier', 'string', array('length' => 200)); $table->addColumn('username', 'boolean'); |