Download the PHP package neos/contentgraph-doctrinedbaladapter-compatibility without Composer

On this page you can find all versions of the php package neos/contentgraph-doctrinedbaladapter-compatibility. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package contentgraph-doctrinedbaladapter-compatibility

Neos.ContentGraph.DoctrineDbalAdapterForwardCompatibility

Ships the content graph neos/contentgraph-doctrinedbaladapter of a newer Neos release for previous Neos version to ease upgrades

Some upgrades like Neos 9.1 to Neos 9.2 require a full replay of the contentGraph projection. There is no way to avoid that. No data transformation from one state/schema to the other is possible. One possibility might be to replay the projection locally first and to sync your tables to production. Or make the upgrade on stage first and then switch. But each way so far is a bit disruptive and either requires a content freeze or if done naively directly on live crashes the whole website rendering.

This package makes the impossible possible. Based on a spark of an idea that in event sourcing we exactly have the capabilities to have multiple read-models / projections and that downtime is not acceptable. This package copies the original sources of the content graph implementation and adjust the namespace so we can effectively install the content graph twice just with different versions. And there is a bit more than that, the package brings all the tooling and documentation needed to allow a smooth upgrade.

How smooth is the smooth upgrade?

If all steps are executed correctly, and you know a bit about your event sourced Neos this process allows to warmup the new projection tables in a separate table directly on your production instance. Any work on the system can continue including working on the content repository. Once the warmup (catchup) is complete the further steps allow to switch the main projection to the new tables.

The only slightest of hiccups can occur in the final step before the projection tables are renamed and when the old projection code is no longer deployed. An absolute atomic switch was considered to adventurous and would come with too many responsibilities.

Supported Upgrades

Forward Compatibility Version Upgrades to Neos ContentGraph Version Upgrades from Neos Version
9.2 9.2 9.0, 9.1

Step by Step Upgrade from 9.0 or 9.1 to 9.2

Step 1 (Local) Install and deploy the pre-patch

Keep Neos 9.0 or 9.1 installed. Only require this pre-patch.

Then deploy this pre-patch package to the production server and continue

Step 2 (Remote) Setup the pre-patch

After installation run ./flow cr:status, you should see something like

Here the "contentGraph_92" projection indicates we have the pre-patch installed but not setup and also not replayed.

Run the setup, this will create the new empty tables like cr_default_p_92_graph_node

Step 3 (Remote) Ensure graph projection can replay and no faulty events / race conditions exist

The new content graph is stricter than before and does no longer allow accidentally event sequences that are caused by a race condition and will no longer be possible in the first place. To detect if there are any inconsistencies run:

If any there are any required migrations backup your database and fix your events. Fixing events directly on production might be a bit advantageous so you should consider making a test on stage or locally first if everything will truly work.

If everything is okay continue

Step 4 (Remote) Replay the new projection (slow)

Be aware that this command will take some time regarding how many events you have. It might be advised to run this without connected terminal which can abort.

After completion the new tables like cr_default_p_92_graph_node are filled.

Step 5 (Remote) validation

Run the status again

and validate that now both content graphs are ACTIVE and at the same position like the event store

Now any changes in the content repository will be reflected in both graphs and tables.

Step 6 (Local) Generate the doctrine migration

Before upgrading to the new Neos 9.2 version you must add the migration that will rename the database tables

The migration will backup all current graph tables like cr_default_p_90_graph_node and rename the new prepared ones to the current, removing the 92 suffix

Commit the migration file but do not deploy yet.

Step 7 (Local) Remove the prepatch and install Neos 9.2

Remove the prepatch package and install Neos 9.2 and apply all other adjustments as per any regular upgrade.

Step 8 (Remote) Deploy and run doctrine migrations

[!WARNING]
Absolutely make sure that the generated migration is commited and migrates your desired content repository (default by default)

Your CI should already contain ./flow doctrine:migrate so you dont need to do anything than to deploy the new code and see that Neos 9.2 works by using its new tables.

Step 9 (Remote) Final validation

Run the status again

and validate that the primary content graph is ACTIVE and at the same position like the event store. The previous graph will be named contentGraph_90 and is detached

[!NOTE] The status might report "SETUP REQUIRED" as the indexes dont have stable names yet and desire to be renamed. See issue.

Step 10 (Remote) Optionally remove detached projection and old tables

There is no automated tooling. To remove the subscription delete the contentGraph_90 entry in the database table cr_default_subscriptions and also drop all tables prefixed with cr_default_p_90_graph.

[!NOTE] Because of the "DETACHED" subscription "cr:setup" will warn you, but this can be safely ignored. See issue.


All versions of contentgraph-doctrinedbaladapter-compatibility with dependencies

PHP Build Version
Package Version
Requires php Version >= 8.2
neos/contentrepository-core Version ~9.0.0 || ~9.1.0
neos/contentrepositoryregistry Version ~9.0.0 || ~9.1.0
doctrine/dbal Version ^3.1.4
doctrine/migrations Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package neos/contentgraph-doctrinedbaladapter-compatibility contains the following files

Loading the files please wait ...