From 8b475ecb14d9535c6ef2ee73eaca9e69a7676f21 Mon Sep 17 00:00:00 2001 From: Claudiu Cristea <clau.cristea@gmail.com> Date: Tue, 12 Nov 2024 19:34:46 +0000 Subject: [PATCH] ISAICP-9218: Still keep an empty command for local development. --- .ddev/commands/host/install | 1 + .ddev/commands/host/rebuild | 1 + .ddev/commands/web/virtuoso_clear_data | 7 +++++++ 3 files changed, 9 insertions(+) create mode 100755 .ddev/commands/web/virtuoso_clear_data diff --git a/.ddev/commands/host/install b/.ddev/commands/host/install index 63278f58ca..cd8164237b 100755 --- a/.ddev/commands/host/install +++ b/.ddev/commands/host/install @@ -6,4 +6,5 @@ ddev solr:empty ddev exec vendor/bin/run toolkit:install-clean +ddev virtuoso:clear-data ddev exec vendor/bin/run dev:install-modules diff --git a/.ddev/commands/host/rebuild b/.ddev/commands/host/rebuild index e42632be6b..d72bb06e31 100755 --- a/.ddev/commands/host/rebuild +++ b/.ddev/commands/host/rebuild @@ -6,5 +6,6 @@ ddev solr:restore ddev run toolkit:install-clone +ddev virtuoso:clear-data ddev run dev:install-modules ddev drush user:unblock --uid=1 diff --git a/.ddev/commands/web/virtuoso_clear_data b/.ddev/commands/web/virtuoso_clear_data new file mode 100755 index 0000000000..33f7705001 --- /dev/null +++ b/.ddev/commands/web/virtuoso_clear_data @@ -0,0 +1,7 @@ +#!/bin/bash + +## Description: Clear the <http://data? Virtuoso graph +## Usage: virtuoso:clear-data + +vendor/bin/drush eval "Drupal::service('rdf_sync.connection')->update('CLEAR GRAPH <http://data>')" +echo "Cleared the <http://data> graph." -- GitLab