Security update for Core, with self-updated composer
[yaffs-website] / vendor / drupal / console-core / dist / chain / site-update.yml
diff --git a/vendor/drupal/console-core/dist/chain/site-update.yml b/vendor/drupal/console-core/dist/chain/site-update.yml
new file mode 100644 (file)
index 0000000..faff042
--- /dev/null
@@ -0,0 +1,20 @@
+command:
+  name: site:update
+  description: 'Execute update commands'
+commands:
+  # Backup current database
+  - command: database:dump
+    arguments:
+      database: 'default'
+  # Import configurations
+  - command: config:import
+  # Run pending update hooks
+  - command: update:execute
+    arguments:
+        module: 'all'
+  # Run pending update entities
+  - command: update:entities
+  # Rebuild caches
+  - command: cache:rebuild
+    arguments:
+        cache: 'all'