Installing https://www.contentacms.org/ on OS X.
Check current composer version
composer --version
If lower then 1.7 update:
composer self-update
<?php | |
class BulkUpdateController | |
{ | |
private EntityWithManyProperties $entityWithManyProperties; | |
public function __construct(EntityWithManyProperties $entityWithManyProperties) | |
{ | |
$this->entityWithManyProperties = $entityWithManyProperties; | |
} |
DATABASE_URL=mysql://db:db@localhost/db?sslmode=disable&charset=utf8mb4&serverVersion=5.7 | |
DATABASE_DRUPAL_URL=mysql://db:db@localhost/legacy?sslmode=disable&charset=utf8mb4&serverVersion=5.7 |
<?php | |
/** | |
* @ApiResource( | |
* itemOperations={ | |
* "get"={ | |
* "path"="/entity/{id}", | |
* "openapi_context" = { | |
* "parameters" = { | |
* { |
ATM php7.2 is current to Ubuntu. | |
Add php7.1 through: | |
sudo add-apt-repository ppa:ondrej/php | |
sudo apt-get update | |
sudo apt-get install php7.1 | |
sudo apt-get install php7.1-cli php7.1-common php7.1-json php7.1-opcache php7.1-mysql php7.1-mbstring php7.1-mcrypt php7.1-zip php7.1-fpm php7.1-dev php7.1-curl php7.1-xml | |
Switch with script |
Installing https://www.contentacms.org/ on OS X.
Check current composer version
composer --version
If lower then 1.7 update:
composer self-update
brew install sysbench
mdfind oltp_read_only.lua
SELECT TABLE_NAME, table_rows, data_length, index_length, | |
round(((data_length + index_length) / 1024 / 1024),2) "Size in MB" | |
FROM information_schema.TABLES WHERE table_schema = "DATABASENAME" | |
ORDER BY (data_length + index_length) DESC; |
cordova plugin add https://github.com/brodysoft/Cordova-SQLitePlugin.git |
<?php | |
/* | |
* Extending DrupalNode5Migration (or 6) migrating the correct terms | |
* - Add the source migration and source tid | |
* - Declare default value | |
*/ | |
$this->addFieldMapping('field_tags', '3') | |
->sourceMigration('Tags'); | |
$this->addFieldMapping('field_tags:source_type') | |
->defaultValue('tid'); |