From 15c4d69bffd7a020fc7bf520cbc0324fade813f4 Mon Sep 17 00:00:00 2001
From: Christian Kuhn <lolli@schwarzbu.ch>
Date: Thu, 13 Jun 2024 20:20:15 +0200
Subject: [PATCH] [TASK] Remove obsolete field from EM domain_model_extension
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Field / column 'repository' is obsolete since #92457,
but couldn't be removed at this point in time. It's
possible now.

Resolves: #104102
Related: #92457
Releases: main
Change-Id: I5ebcc65f5f9520b065ad3bddba728566b1264325
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/84704
Tested-by: core-ci <typo3@b13.com>
Reviewed-by: Oliver Bartsch <bo@cedev.de>
Tested-by: Oliver Bartsch <bo@cedev.de>
Tested-by: Stefan Bürk <stefan@buerk.tech>
Reviewed-by: Stefan Bürk <stefan@buerk.tech>
---
 .../core/Tests/Acceptance/Fixtures/BackendEnvironment.csv   | 6 +++---
 typo3/sysext/extensionmanager/ext_tables.sql                | 2 --
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/typo3/sysext/core/Tests/Acceptance/Fixtures/BackendEnvironment.csv b/typo3/sysext/core/Tests/Acceptance/Fixtures/BackendEnvironment.csv
index ce3b6cf145ed..eaa1a09a2ad5 100644
--- a/typo3/sysext/core/Tests/Acceptance/Fixtures/BackendEnvironment.csv
+++ b/typo3/sysext/core/Tests/Acceptance/Fixtures/BackendEnvironment.csv
@@ -28,9 +28,9 @@
 ,14,0,8,0,"level-1-2-6"
 ,15,0,0,0,"level-1-3"
 "tx_extensionmanager_domain_model_extension"
-,"uid","pid","extension_key","repository","version","alldownloadcounter","downloadcounter","title","description","state","review_state","category","last_updated","serialized_dependencies","author_name","author_email","ownerusername","md5hash","update_comment","authorcompany","integer_version","current_version","lastreviewedversion"
-,1,0,"superext",1,"1.0.0",1,0,"Super extension","Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam",2,0,2,1474625908,"a:1:{s:7:&quot;depends&quot;;a:1:{s:5:&quot;typo3&quot;;s:12:&quot;7.6.0-8.9.99&quot;;}}","John Doe","john@doe.com","jdoe","fa061138fc220bdfe5c631ba019f9f84"," Update comment",,1000000,1,0
-,2,0,"neededext",1,"2.0.0",2,0,"Needed Extension","Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut",2,0,5,1474977787,"a:1:{s:7:&quot;depends&quot;;a:3:{s:5:&quot;typo3&quot;;s:13:&quot;6.2.0-8.4.999&quot;;s:3:&quot;php&quot;;s:13:&quot;5.4.0-7.0.999&quot;;s:9:&quot;scheduler&quot;;s:13:&quot;6.2.0-8.4.999&quot;;}}","Dmitry Dulepov","dmitry.dulepov@gmail.com","dmitry","b28075aa867d17cc97c7acfe187a71d1","no comment",,2000000,1,0
+,"uid","pid","extension_key","version","alldownloadcounter","downloadcounter","title","description","state","review_state","category","last_updated","serialized_dependencies","author_name","author_email","ownerusername","md5hash","update_comment","authorcompany","integer_version","current_version","lastreviewedversion"
+,1,0,"superext","1.0.0",1,0,"Super extension","Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam",2,0,2,1474625908,"a:1:{s:7:&quot;depends&quot;;a:1:{s:5:&quot;typo3&quot;;s:12:&quot;7.6.0-8.9.99&quot;;}}","John Doe","john@doe.com","jdoe","fa061138fc220bdfe5c631ba019f9f84"," Update comment",,1000000,1,0
+,2,0,"neededext","2.0.0",2,0,"Needed Extension","Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut",2,0,5,1474977787,"a:1:{s:7:&quot;depends&quot;;a:3:{s:5:&quot;typo3&quot;;s:13:&quot;6.2.0-8.4.999&quot;;s:3:&quot;php&quot;;s:13:&quot;5.4.0-7.0.999&quot;;s:9:&quot;scheduler&quot;;s:13:&quot;6.2.0-8.4.999&quot;;}}","Dmitry Dulepov","dmitry.dulepov@gmail.com","dmitry","b28075aa867d17cc97c7acfe187a71d1","no comment",,2000000,1,0
 "pages"
 ,"uid","pid","title","doktype","deleted","is_siteroot","perms_everybody"
 ,1,0,"Root",1,0,1,15
diff --git a/typo3/sysext/extensionmanager/ext_tables.sql b/typo3/sysext/extensionmanager/ext_tables.sql
index 2c2cc679b00b..4a89ce5893df 100644
--- a/typo3/sysext/extensionmanager/ext_tables.sql
+++ b/typo3/sysext/extensionmanager/ext_tables.sql
@@ -1,8 +1,6 @@
 # Keeping most fields here since that table *should not* have TCA at all
 CREATE TABLE tx_extensionmanager_domain_model_extension (
   extension_key varchar(60) NOT NULL default '',
-  # @todo: Can be removed once TYPO3s testing framework fixture does not set <repository>
-  repository int(1) NOT NULL default 1,
   remote varchar(100) NOT NULL default 'ter',
   version varchar(15) NOT NULL default '',
   alldownloadcounter int(11) unsigned NOT NULL default '0',
-- 
GitLab