From 4fa91af6ec65452b97627f376ca3b9d73cd220b2 Mon Sep 17 00:00:00 2001
From: Adam Bramley <adam.bramley@previousnext.com.au>
Date: Thu, 20 Mar 2025 10:54:40 +1100
Subject: [PATCH 1/2] Remove nid 0 population

---
 core/modules/node/node.install | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/core/modules/node/node.install b/core/modules/node/node.install
index d959f80dfcdf..d177a2c773a3 100644
--- a/core/modules/node/node.install
+++ b/core/modules/node/node.install
@@ -132,18 +132,6 @@ function node_install(): void {
     user_role_grant_permissions(RoleInterface::ANONYMOUS_ID, ['access content']);
     user_role_grant_permissions(RoleInterface::AUTHENTICATED_ID, ['access content']);
   }
-
-  // Populate the node access table.
-  Database::getConnection()->insert('node_access')
-    ->fields([
-      'nid' => 0,
-      'gid' => 0,
-      'realm' => 'all',
-      'grant_view' => 1,
-      'grant_update' => 0,
-      'grant_delete' => 0,
-    ])
-    ->execute();
 }
 
 /**
-- 
GitLab


From 01526be8999bc0574cb923af696fc767f073b25b Mon Sep 17 00:00:00 2001
From: Adam Bramley <adam.bramley@previousnext.com.au>
Date: Thu, 20 Mar 2025 10:59:39 +1100
Subject: [PATCH 2/2] Lint

---
 core/modules/node/node.install | 1 -
 1 file changed, 1 deletion(-)

diff --git a/core/modules/node/node.install b/core/modules/node/node.install
index d177a2c773a3..0933843681d1 100644
--- a/core/modules/node/node.install
+++ b/core/modules/node/node.install
@@ -6,7 +6,6 @@
  */
 
 use Drupal\Core\Url;
-use Drupal\Core\Database\Database;
 use Drupal\user\RoleInterface;
 
 /**
-- 
GitLab