createTable('dav_cal_proxy'); $table->addColumn('id', Types::BIGINT, [ 'autoincrement' => true, 'notnull' => true, 'length' => 11, 'unsigned' => true, ]); $table->addColumn('owner_id', Types::STRING, [ 'notnull' => true, 'length' => 64, ]); $table->addColumn('proxy_id', Types::STRING, [ 'notnull' => true, 'length' => 64, ]); $table->addColumn('permissions', Types::INTEGER, [ 'notnull' => false, 'length' => 4, 'unsigned' => true, ]); $table->setPrimaryKey(['id']); $table->addUniqueIndex(['owner_id', 'proxy_id', 'permissions'], 'dav_cal_proxy_uidx'); $table->addIndex(['proxy_id'], 'dav_cal_proxy_ipid'); return $schema; } }