X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fsystem%2Ftests%2Ffixtures%2Fupdate%2Fdrupal-8.entity-test-initial.php;fp=web%2Fcore%2Fmodules%2Fsystem%2Ftests%2Ffixtures%2Fupdate%2Fdrupal-8.entity-test-initial.php;h=e7ab6961e647243e7119a0abe87c4825c6027091;hp=0000000000000000000000000000000000000000;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/web/core/modules/system/tests/fixtures/update/drupal-8.entity-test-initial.php b/web/core/modules/system/tests/fixtures/update/drupal-8.entity-test-initial.php new file mode 100644 index 000000000..e7ab6961e --- /dev/null +++ b/web/core/modules/system/tests/fixtures/update/drupal-8.entity-test-initial.php @@ -0,0 +1,24 @@ +select('key_value') + ->fields('key_value', ['value']) + ->condition('collection', 'entity.storage_schema.sql') + ->condition('name', 'entity_test_update.field_schema_data.name') + ->execute() + ->fetchField(); + +$schema = unserialize($schema); +$schema['entity_test_update']['fields']['name']['initial'] = 'test'; + +$connection->update('key_value') + ->fields(['value' => serialize($schema)]) + ->condition('collection', 'entity.storage_schema.sql') + ->condition('name', 'entity_test_update.field_schema_data.name') + ->execute();