Merge branch 'develop' of github.com:cerebrate-project/cerebrate into develop

pull/67/head
iglocska 2021-06-29 11:51:52 +02:00
commit 54924709a7
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
2 changed files with 41 additions and 37 deletions

View File

@ -17,46 +17,49 @@ class LocalTools extends AbstractMigration
*/
public function change()
{
$table = $this->table('local_tools', [
'signed' => false,
'collation' => 'utf8mb4_unicode_ci',
]);
$table
->addColumn('id', 'integer', [
'autoIncrement' => true,
'limit' => 10,
$exists = $this->hasTable('local_tools');
if (!$exists) {
$table = $this->table('local_tools', [
'signed' => false,
])
->addPrimaryKey('id')
->addColumn('name', 'string', [
'default' => null,
'null' => false,
'limit' => 191,
'comment' => 'The name of the individual connection',
])
->addColumn('connector', 'string', [
'default' => null,
'null' => false,
'limit' => 191,
'comment' => 'The library name used for the connection',
])
->addColumn('settings', 'text', [
'default' => null,
'null' => true,
])
->addColumn('exposed', 'boolean', [
'default' => 0,
'null' => false,
])
->addColumn('description', 'text', [
'default' => null,
'null' => true,
'collation' => 'utf8mb4_unicode_ci',
]);
$table
->addColumn('id', 'integer', [
'autoIncrement' => true,
'limit' => 10,
'signed' => false,
])
->addPrimaryKey('id')
->addColumn('name', 'string', [
'default' => null,
'null' => false,
'limit' => 191,
'comment' => 'The name of the individual connection',
])
->addColumn('connector', 'string', [
'default' => null,
'null' => false,
'limit' => 191,
'comment' => 'The library name used for the connection',
])
->addColumn('settings', 'text', [
'default' => null,
'null' => true,
])
->addColumn('exposed', 'boolean', [
'default' => 0,
'null' => false,
])
->addColumn('description', 'text', [
'default' => null,
'null' => true,
]);
$table->addIndex('name')
->addIndex('connector');
$table->addIndex('name')
->addIndex('connector');
$table->create();
$table->create();
}
}
}

View File

@ -13,7 +13,8 @@ class UsersController extends AppController
{
$this->CRUD->index([
'contain' => ['Individuals', 'Roles'],
'filters' => ['Users.email', 'uuid']
'filters' => ['Users.email', 'uuid'],
'quickFilters' => ['uuid', ['username' => true], ['Individuals.first_name' => true], ['Individuals.last_name' => true], 'Individuals.email'],
]);
if ($this->ParamHandler->isRest()) {
return $this->restResponsePayload;