-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Additional changes to setup script (CFM-28)
- Loading branch information
Benn Oshrin
committed
Aug 22, 2022
1 parent
563512b
commit aa74603
Showing
10 changed files
with
409 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
<?php | ||
return [ | ||
/** | ||
* Connection information used by the ORM to connect | ||
* to your application's datastores. | ||
* Do not use periods in database name - it may lead to error. | ||
* See https://github.com/cakephp/cakephp/issues/6471 for details. | ||
* Drivers include Mysql Postgres Sqlite Sqlserver | ||
* See vendor\cakephp\cakephp\src\Database\Driver for complete list | ||
*/ | ||
'Datasources' => [ | ||
'default' => [ | ||
'className' => 'Cake\Database\Connection', | ||
// Cake supports "Mysql", "Postgres", "Sqlite", or "Sqlserver", | ||
// but Registry only supports the first two. | ||
'driver' => 'Cake\Database\Driver\Postgres', | ||
'persistent' => false, | ||
'host' => 'localhost', | ||
'username' => 'comanage', | ||
'password' => 'somepasswordhere', | ||
'database' => 'registry', | ||
/** | ||
* CakePHP will use the default DB port based on the driver selected | ||
* MySQL on MAMP uses port 8889, MAMP users will want to uncomment | ||
* the following line and set the port accordingly | ||
*/ | ||
//'port' => 'non_standard_port_number', | ||
'encoding' => 'utf8', | ||
'timezone' => 'UTC', | ||
'flags' => [], | ||
'cacheMetadata' => true, | ||
'log' => false, | ||
|
||
/** | ||
* Set identifier quoting to true if you are using reserved words or | ||
* special characters in your table or column names. Enabling this | ||
* setting will result in queries built using the Query Builder having | ||
* identifiers quoted when creating SQL. It should be noted that this | ||
* decreases performance because each query needs to be traversed and | ||
* manipulated before being executed. | ||
*/ | ||
// Set this to true for MySQL | ||
'quoteIdentifiers' => false, | ||
|
||
/** | ||
* During development, if using MySQL < 5.6, uncommenting the | ||
* following line could boost the speed at which schema metadata is | ||
* fetched from the database. It can also be set directly with the | ||
* mysql configuration directive 'innodb_stats_on_metadata = 0' | ||
* which is the recommended value in production environments | ||
*/ | ||
//'init' => ['SET GLOBAL innodb_stats_on_metadata = 0'], | ||
|
||
'url' => env('DATABASE_URL', null), | ||
], | ||
|
||
/** | ||
* The test connection is used during the test suite. | ||
*/ | ||
'test' => [ | ||
'className' => 'Cake\Database\Connection', | ||
'driver' => 'Cake\Database\Driver\Postgres', | ||
'persistent' => false, | ||
'host' => 'localhost', | ||
//'port' => 'non_standard_port_number', | ||
'username' => 'my_app', | ||
'password' => 'secret', | ||
'database' => 'test_myapp', | ||
'encoding' => 'utf8', | ||
'timezone' => 'UTC', | ||
'cacheMetadata' => true, | ||
'quoteIdentifiers' => false, | ||
'log' => false, | ||
//'init' => ['SET GLOBAL innodb_stats_on_metadata = 0'], | ||
'url' => env('DATABASE_TEST_URL', null), | ||
], | ||
|
||
/** | ||
* For data migration from v4 to v5 | ||
*/ | ||
'transmogrify' => [ | ||
'className' => 'Cake\Database\Connection', | ||
// Cake supports "Mysql", "Postgres", "Sqlite", or "Sqlserver", | ||
// but Registry only supports the first two. | ||
'driver' => 'Cake\Database\Driver\Postgres', | ||
'persistent' => false, | ||
'host' => 'localhost', | ||
'username' => 'comanage', | ||
'password' => 'somepasswordhere', | ||
'database' => 'registryv4', | ||
/** | ||
* CakePHP will use the default DB port based on the driver selected | ||
* MySQL on MAMP uses port 8889, MAMP users will want to uncomment | ||
* the following line and set the port accordingly | ||
*/ | ||
//'port' => 'non_standard_port_number', | ||
'encoding' => 'utf8', | ||
'timezone' => 'UTC', | ||
'flags' => [], | ||
'cacheMetadata' => true, | ||
'log' => false, | ||
|
||
/** | ||
* Set identifier quoting to true if you are using reserved words or | ||
* special characters in your table or column names. Enabling this | ||
* setting will result in queries built using the Query Builder having | ||
* identifiers quoted when creating SQL. It should be noted that this | ||
* decreases performance because each query needs to be traversed and | ||
* manipulated before being executed. | ||
*/ | ||
// Set to true for MySQL | ||
'quoteIdentifiers' => false, | ||
|
||
/** | ||
* During development, if using MySQL < 5.6, uncommenting the | ||
* following line could boost the speed at which schema metadata is | ||
* fetched from the database. It can also be set directly with the | ||
* mysql configuration directive 'innodb_stats_on_metadata = 0' | ||
* which is the recommended value in production environments | ||
*/ | ||
//'init' => ['SET GLOBAL innodb_stats_on_metadata = 0'], | ||
|
||
'url' => env('DATABASE_URL', null), | ||
] | ||
] | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
/** | ||
* COmanage Registry Meta Entity | ||
* | ||
* Portions licensed to the University Corporation for Advanced Internet | ||
* Development, Inc. ("UCAID") under one or more contributor license agreements. | ||
* See the NOTICE file distributed with this work for additional information | ||
* regarding copyright ownership. | ||
* | ||
* UCAID licenses this file to you under the Apache License, Version 2.0 | ||
* (the "License"); you may not use this file except in compliance with the | ||
* License. You may obtain a copy of the License at: | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* @link https://www.internet2.edu/comanage COmanage Project | ||
* @package registry | ||
* @since COmanage Registry v5.0.0 | ||
* @license Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) | ||
*/ | ||
|
||
declare(strict_types = 1); | ||
|
||
namespace App\Model\Entity; | ||
|
||
use Cake\ORM\Entity; | ||
|
||
class Meta extends Entity { | ||
protected $_accessible = [ | ||
'*' => true, | ||
'id' => false, | ||
'slug' => false, | ||
]; | ||
} |
Oops, something went wrong.