protected function addEntryTable()
    {
        $table = $this->createTable($this->options['entry_table_name']);

        $table->addColumn('id', 'integer', array('unsigned' => true, 'autoincrement' => true));
        $table->addColumn('class_id', 'integer', array('unsigned' => true));
        $table->addColumn('object_identity_id', 'integer', array('unsigned' => true, '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('mask', 'integer');
        $table->addColumn('granting', 'boolean');
        $table->addColumn('granting_strategy', 'string', array('length' => 30));
        $table->addColumn('audit_success', 'boolean');
        $table->addColumn('audit_failure', 'boolean');

        $table->setPrimaryKey(array('id'));
        $table->addUniqueIndex(array('class_id', 'object_identity_id', 'field_name', 'ace_order'));
        $table->addIndex(array('class_id', 'object_identity_id', 'security_identity_id'));

        $table->addForeignKeyConstraint($this->getTable($this->options['class_table_name']), array('class_id'), array('id'), array('onDelete' => 'CASCADE', 'onUpdate' => 'CASCADE'));
        $table->addForeignKeyConstraint($this->getTable($this->options['oid_table_name']), array('object_identity_id'), array('id'), array('onDelete' => 'CASCADE', 'onUpdate' => 'CASCADE'));
        $table->addForeignKeyConstraint($this->getTable($this->options['sid_table_name']), array('security_identity_id'), array('id'), array('onDelete' => 'CASCADE', 'onUpdate' => 'CASCADE'));
    }
protected function addEntryTable()
    {
        $table = $this->createTable($this->options['entry_table_name']);

        $table->addColumn('id', 'integer', array('unsigned' => true, 'autoincrement' => true));
        $table->addColumn('class_id', 'integer', array('unsigned' => true));
        $table->addColumn('object_identity_id', 'integer', array('unsigned' => true, '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('mask', 'integer');
        $table->addColumn('granting', 'boolean');
        $table->addColumn('granting_strategy', 'string', array('length' => 30));
        $table->addColumn('audit_success', 'boolean');
        $table->addColumn('audit_failure', 'boolean');

        $table->setPrimaryKey(array('id'));
        $table->addUniqueIndex(array('class_id', 'object_identity_id', 'field_name', 'ace_order'));
        $table->addIndex(array('class_id', 'object_identity_id', 'security_identity_id'));

        $table->addForeignKeyConstraint($this->getTable($this->options['class_table_name']), array('class_id'), array('id'), array('onDelete' => 'CASCADE', 'onUpdate' => 'CASCADE'));
        $table->addForeignKeyConstraint($this->getTable($this->options['oid_table_name']), array('object_identity_id'), array('id'), array('onDelete' => 'CASCADE', 'onUpdate' => 'CASCADE'));
        $table->addForeignKeyConstraint($this->getTable($this->options['sid_table_name']), array('security_identity_id'), array('id'), array('onDelete' => 'CASCADE', 'onUpdate' => 'CASCADE'));
    }
protected function addEntryTable ( ) { $ table = $ this -> createTable ( $ this -> options [ 'entry_table_name' ] ) ; $ table -> addColumn ( 'id' , 'integer' , array ( 'unsigned' => true , 'autoincrement' => true ) ) ; $ table -> addColumn ( 'class_id' , 'integer' , array ( 'unsigned' => true ) ) ; $ table -> addColumn ( 'object_identity_id' , 'integer' , array ( 'unsigned' => true , '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 ( 'mask' , 'integer' ) ; $ table -> addColumn ( 'granting' , 'boolean' ) ; $ table -> addColumn ( 'granting_strategy' , 'string' , array ( 'length' => 30 ) ) ; $ table -> addColumn ( 'audit_success' , 'boolean' ) ; $ table -> addColumn ( 'audit_failure' , 'boolean' ) ; $ table -> setPrimaryKey ( array ( 'id' ) ) ; $ table -> addUniqueIndex ( array ( 'class_id' , 'object_identity_id' , 'field_name' , 'ace_order' ) ) ; $ table -> addIndex ( array ( 'class_id' , 'object_identity_id' , 'security_identity_id' ) ) ; $ table -> addForeignKeyConstraint ( $ this -> getTable ( $ this -> options [ 'class_table_name' ] ) , array ( 'class_id' ) , array ( 'id' ) , array ( 'onDelete' => 'CASCADE' , 'onUpdate' => 'CASCADE' ) ) ; $ table -> addForeignKeyConstraint ( $ this -> getTable ( $ this -> options [ 'oid_table_name' ] ) , array ( 'object_identity_id' ) , array ( 'id' ) , array ( 'onDelete' => 'CASCADE' , 'onUpdate' => 'CASCADE' ) ) ; $ table -> addForeignKeyConstraint ( $ this -> getTable ( $ this -> options [ 'sid_table_name' ] ) , array ( 'security_identity_id' ) , array ( 'id' ) , array ( 'onDelete' => 'CASCADE' , 'onUpdate' => 'CASCADE' ) ) ; }
Adds the entry table to the schema.
Adds the entry table to the schema .