[TASK] Extensionmanager: Remove persistence mapping
authorChristian Kuhn <lolli@schwarzbu.ch>
Wed, 29 Aug 2012 21:23:08 +0000 (23:23 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 30 Aug 2012 13:15:15 +0000 (15:15 +0200)
WARNING! Upgraders who already run run 6.0 master: You need to import
the static row in Install tool -> Database Analyzer -> Import ->
tx_extensionmanager_domain_model_repository.

To make the new extensionmanager more standalone and run with less
dependencies, the table and field persistence mapping should be
removed. Therefore, table sys_ter is renamed to the standard extabe
table naming scheme following the model name "repository". Furthermore,
the fields are normalized to be in line with the exbase model property
names.

This patch is needed for the installation process of introduction and
government package.

Change-Id: I586572c06b07e1f78df789aa659496b32250df14
Resolves: #40394
Releases: 6.0
Reviewed-on: http://review.typo3.org/14208
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
13 files changed:
typo3/sysext/extensionmanager/Classes/Controller/UpdateFromTerController.php
typo3/sysext/extensionmanager/Classes/Domain/Repository/ExtensionRepository.php
typo3/sysext/extensionmanager/Classes/Domain/Repository/RepositoryRepository.php
typo3/sysext/extensionmanager/Classes/Utility/Importer/ExtensionListUtility.php
typo3/sysext/extensionmanager/Classes/Utility/InstallUtility.php
typo3/sysext/extensionmanager/Classes/Utility/Repository/Helper.php
typo3/sysext/extensionmanager/Configuration/TCA/Extension.php
typo3/sysext/extensionmanager/Configuration/TCA/Repository.php [new file with mode: 0644]
typo3/sysext/extensionmanager/Resources/Private/Language/locallang_db.xml
typo3/sysext/extensionmanager/ext_tables.php
typo3/sysext/extensionmanager/ext_tables.sql
typo3/sysext/extensionmanager/ext_tables_static+adt.sql
typo3/sysext/extensionmanager/ext_typoscript_setup.txt

index 05650d0..bf5f7c0 100644 (file)
@@ -103,7 +103,7 @@ class UpdateFromTerController extends \TYPO3\CMS\Extensionmanager\Controller\Abs
                $updated = FALSE;
                $errorMessage = '';
                /** @var $repository \TYPO3\CMS\Extensionmanager\Domain\Model\Repository */
-               $repository = $this->repositoryRepository->findOneByUid((int) $this->settings['repositoryUid']);
+               $repository = $this->repositoryRepository->findOneByUid((int)$this->settings['repositoryUid']);
                if ($repository->getLastUpdate()->getTimestamp() < $GLOBALS['EXEC_TIME'] - (24 * 60) * 60 || $forceUpdateCheck) {
                        try {
                                $updated = $this->repositoryHelper->updateExtList();
index 1819798..8387aac 100644 (file)
@@ -110,22 +110,22 @@ class ExtensionRepository extends \TYPO3\CMS\Extbase\Persistence\Repository {
                $quotedSearchString = ('\'' . $quotedSearchString) . '\'';
                $select = ((((((('tx_extensionmanager_domain_model_extension.*,
                        (
-                               (extkey like ' . $quotedSearchString) . ') * 8 +
-                               (extkey like ') . $quotedSearchStringForLike) . ') * 4 +
+                               (extension_key like ' . $quotedSearchString) . ') * 8 +
+                               (extension_key like ') . $quotedSearchStringForLike) . ') * 4 +
                                (title like ') . $quotedSearchStringForLike) . ') * 2 +
-                               (authorname like ') . $quotedSearchStringForLike) . ')
+                               (author_name like ') . $quotedSearchStringForLike) . ')
                        ) as position';
                $from = 'tx_extensionmanager_domain_model_extension';
                $where = ((((((('(
-                                       extkey = ' . $quotedSearchString) . '
+                                       extension_key = ' . $quotedSearchString) . '
                                        OR
-                                       extkey LIKE ') . $quotedSearchStringForLike) . '
+                                       extension_key LIKE ') . $quotedSearchStringForLike) . '
                                        OR
                                        description LIKE ') . $quotedSearchStringForLike) . '
                                        OR
                                        title LIKE ') . $quotedSearchStringForLike) . '
                                )
-                               AND lastversion=1
+                               AND current_version=1
                                HAVING position > 0';
                $order = 'position desc';
                $result = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows($select, $from, $where, '', $order);
@@ -189,7 +189,7 @@ class ExtensionRepository extends \TYPO3\CMS\Extbase\Persistence\Repository {
        }
 
        /**
-        * Update the lastversion field after update
+        * Update the current_version field after update
         * For performance reason "native" TYPO3_DB is
         * used here directly.
         *
@@ -197,14 +197,14 @@ class ExtensionRepository extends \TYPO3\CMS\Extbase\Persistence\Repository {
         * @return integer
         */
        public function insertLastVersion($repositoryUid = 1) {
-               $groupedRows = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows('extkey, version, max(intversion) maxintversion', 'tx_extensionmanager_domain_model_extension', 'repository=' . intval($repositoryUid), 'extkey');
+               $groupedRows = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows('extension_key, version, max(integer_version) maxintversion', 'tx_extensionmanager_domain_model_extension', 'repository=' . intval($repositoryUid), 'extension_key');
                $extensions = count($groupedRows);
                if ($extensions > 0) {
                        // set all to 0
-                       $GLOBALS['TYPO3_DB']->exec_UPDATEquery('tx_extensionmanager_domain_model_extension', 'lastversion=1 AND repository=' . intval($repositoryUid), array('lastversion' => 0));
-                       // Find latest version of extensions and set lastversion to 1 for these
+                       $GLOBALS['TYPO3_DB']->exec_UPDATEquery('tx_extensionmanager_domain_model_extension', 'current_version=1 AND repository=' . intval($repositoryUid), array('current_version' => 0));
+                       // Find latest version of extensions and set current_version to 1 for these
                        foreach ($groupedRows as $row) {
-                               $GLOBALS['TYPO3_DB']->exec_UPDATEquery('tx_extensionmanager_domain_model_extension', (((('extkey=' . $GLOBALS['TYPO3_DB']->fullQuoteStr($row['extkey'], 'tx_extensionmanager_domain_model_extension')) . ' AND intversion=') . intval($row['maxintversion'])) . ' AND repository=') . intval($repositoryUid), array('lastversion' => 1));
+                               $GLOBALS['TYPO3_DB']->exec_UPDATEquery('tx_extensionmanager_domain_model_extension', (((('extension_key=' . $GLOBALS['TYPO3_DB']->fullQuoteStr($row['extension_key'], 'tx_extensionmanager_domain_model_extension')) . ' AND integer_version=') . intval($row['maxintversion'])) . ' AND repository=') . intval($repositoryUid), array('current_version' => 1));
                        }
                }
                return $extensions;
@@ -219,9 +219,9 @@ class ExtensionRepository extends \TYPO3\CMS\Extbase\Persistence\Repository {
         */
        protected function addDefaultConstraints(\TYPO3\CMS\Extbase\Persistence\Generic\Query $query) {
                if ($query->getConstraint()) {
-                       $query->matching($query->logicalAnd($query->getConstraint(), $query->equals('lastversion', TRUE)));
+                       $query->matching($query->logicalAnd($query->getConstraint(), $query->equals('current_version', TRUE)));
                } else {
-                       $query->matching($query->equals('lastversion', TRUE));
+                       $query->matching($query->equals('current_version', TRUE));
                }
                return $query;
        }
index e300d75..fa50ca4 100644 (file)
@@ -40,9 +40,9 @@ class RepositoryRepository extends \TYPO3\CMS\Extbase\Persistence\Repository {
         * @return void
         */
        public function updateRepositoryCount($extCount, $uid = 1) {
-               $GLOBALS['TYPO3_DB']->exec_UPDATEquery('sys_ter', 'uid=' . intval($uid), array(
-                       'lastUpdated' => time(),
-                       'extCount' => intval($extCount)
+               $GLOBALS['TYPO3_DB']->exec_UPDATEquery('tx_extensionmanager_domain_model_repository', 'uid=' . intval($uid), array(
+                       'last_update' => time(),
+                       'extension_count' => intval($extCount)
                ));
        }
 
index a4d719a..123ac43 100644 (file)
@@ -68,25 +68,25 @@ class ExtensionListUtility implements \SplObserver {
         * @var array
         */
        static protected $fieldNames = array(
-               'extkey',
+               'extension_key',
                'version',
-               'intversion',
+               'integer_version',
                'alldownloadcounter',
                'downloadcounter',
                'title',
                'ownerusername',
-               'authorname',
-               'authoremail',
+               'author_name',
+               'author_email',
                'authorcompany',
-               'lastuploaddate',
-               't3xfilemd5',
+               'last_updated',
+               'md5hash',
                'repository',
                'state',
-               'reviewstate',
+               'review_state',
                'category',
                'description',
-               'dependencies',
-               'uploadcomment'
+               'serialized_dependencies',
+               'update_comment'
        );
 
        /**
index 7cfb4c8..540651f 100644 (file)
@@ -207,6 +207,8 @@ class InstallUtility implements \TYPO3\CMS\Core\SingletonInterface {
                $extTablesSqlFile = (PATH_site . $extension['siteRelPath']) . '/ext_tables.sql';
                if (file_exists($extTablesSqlFile)) {
                        $extTablesSqlContent = \TYPO3\CMS\Core\Utility\GeneralUtility::getUrl($extTablesSqlFile);
+                               // @TODO: This should probably moved to TYPO3\CMS\Core\Cache\Cache->getDatabaseTableDefinitions ?!
+                       $GLOBALS['typo3CacheManager']->setCacheConfigurations($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']);
                        $extTablesSqlContent .= \TYPO3\CMS\Core\Cache\Cache::getDatabaseTableDefinitions();
                        $this->updateDbWithExtTablesSql($extTablesSqlContent);
                }
index 6fcd8d9..829f798 100644 (file)
@@ -294,7 +294,7 @@ class Helper implements \TYPO3\CMS\Core\SingletonInterface {
                        // no further problems - start of import process
                        if ($updateNecessity === 0) {
                                $uid = $this->repository->getUid();
-                               /* @var $objExtListImporter Tx_Extensionmanager_Utility_Importer_ExtensionList */
+                               /* @var $objExtListImporter \TYPO3\CMS\Extensionmanager\Utility\Importer\ExtensionListUtility */
                                $objExtListImporter = $this->objectManager->get('TYPO3\\CMS\\Extensionmanager\\Utility\\Importer\\ExtensionListUtility');
                                $objExtListImporter->import($this->getLocalExtListFile(), $uid);
                                $updated = TRUE;
index 59385a4..dd3e994 100644 (file)
@@ -5,9 +5,8 @@ if (!defined('TYPO3_MODE')) {
 $TCA['tx_extensionmanager_domain_model_extension'] = array(
        'ctrl' => $TCA['tx_extensionmanager_domain_model_extension']['ctrl'],
        'interface' => array(
-               'showRecordFieldList' => 'extensionkey,version,title,description,state,category,lastupdated,updatecomment,authorname,authoremail'
+               'showRecordFieldList' => 'extensionkey,version,title,description,state,category,lastupdated,updatecomment,authorname,authoremail,md5hash'
        ),
-       'feInterface' => $TCA['tx_extensionmanager_domain_model_extension']['feInterface'],
        'columns' => array(
                'extension_key' => array(
                        'exclude' => 0,
@@ -96,26 +95,25 @@ $TCA['tx_extensionmanager_domain_model_extension'] = array(
                                'size' => '30'
                        )
                ),
-               'lastversion' => array(
+               'current_version' => array(
                        'exclude' => 0,
-                       'label' => 'LLL:EXT:extensionmanager/Resources/Private/locallang_db.xml:tx_extensionmanager_domain_model_extension.lastversion',
+                       'label' => 'LLL:EXT:extensionmanager/Resources/Private/locallang_db.xml:tx_extensionmanager_domain_model_extension.currentversion',
                        'config' => array(
                                'type' => 'check',
                                'size' => '1'
                        )
                ),
-               'position' => array(
+               'md5hash' => array(
                        'exclude' => 0,
-                       'label' => 'LLL:EXT:extensionmanager/Resources/Private/locallang_db.xml:tx_extensionmanager_domain_model_extension.lastversion',
+                       'label' => 'LLL:EXT:extensionmanager/Resources/Private/locallang_db.xml:tx_extensionmanager_domain_model_extension.md5hash',
                        'config' => array(
                                'type' => 'input',
-                               'size' => '10',
-                               'eval' => 'int'
-                       )
-               )
+                               'size' => '1',
+                       ),
+               ),
        ),
        'types' => array(
-               '0' => array('showitem' => 'extensionkey;;;;1-1-1, version, title;;;;2-2-2, description;;;;3-3-3, state, category, lastupdated, updatecomment, authorname, authoremail')
+               '0' => array('showitem' => 'extensionkey;;;;1-1-1, version, title;;;;2-2-2, description;;;;3-3-3, state, category, lastupdated, updatecomment, authorname, authoremail, md5hash')
        ),
        'palettes' => array(
                '1' => array('showitem' => '')
diff --git a/typo3/sysext/extensionmanager/Configuration/TCA/Repository.php b/typo3/sysext/extensionmanager/Configuration/TCA/Repository.php
new file mode 100644 (file)
index 0000000..206d799
--- /dev/null
@@ -0,0 +1,68 @@
+<?php
+if (!defined('TYPO3_MODE')) {
+       die('Access denied.');
+}
+$TCA['tx_extensionmanager_domain_model_repository'] = array(
+       'ctrl' => $TCA['tx_extensionmanager_domain_model_repository']['ctrl'],
+       'interface' => array(
+               'showRecordFieldList' => 'title,description,wsdl_url_mirror_list_url,last_update,extension_count'
+       ),
+       'feInterface' => $TCA['tx_extensionmanager_domain_model_repository']['feInterface'],
+       'columns' => array(
+               'title' => array(
+                       'exclude' => 0,
+                       'label' => 'LLL:EXT:extensionmanager/Resources/Private/locallang_db.xml:tx_extensionmanager_domain_model_repository.title',
+                       'config' => array(
+                               'type' => 'input',
+                               'size' => '30'
+                       ),
+               ),
+               'description' => array(
+                       'exclude' => 0,
+                       'label' => 'LLL:EXT:extensionmanager/Resources/Private/locallang_db.xml:tx_extensionmanager_domain_model_repository.description',
+                       'config' => array(
+                               'type' => 'input',
+                               'size' => '30'
+                       ),
+               ),
+               'wsdl_url' => array(
+                       'exclude' => 0,
+                       'label' => 'LLL:EXT:extensionmanager/Resources/Private/locallang_db.xml:tx_extensionmanager_domain_model_repository.wsdlUrl',
+                       'config' => array(
+                               'type' => 'input',
+                               'size' => '30'
+                       ),
+               ),
+               'mirror_list_url' => array(
+                       'exclude' => 0,
+                       'label' => 'LLL:EXT:extensionmanager/Resources/Private/locallang_db.xml:tx_extensionmanager_domain_model_repository.mirrorListUrl',
+                       'config' => array(
+                               'type' => 'text',
+                               'cols' => '30',
+                       ),
+               ),
+               'last_update' => array(
+                       'exclude' => 0,
+                       'label' => 'LLL:EXT:extensionmanager/Resources/Private/locallang_db.xml:tx_extensionmanager_domain_model_repository.lastUpdate',
+                       'config' => array(
+                               'type' => 'input',
+                               'size' => '30',
+                       ),
+               ),
+               'extension_count' => array(
+                       'exclude' => 0,
+                       'label' => 'LLL:EXT:extensionmanager/Resources/Private/locallang_db.xml:tx_extensionmanager_domain_model_repository.extensionCount',
+                       'config' => array(
+                               'type' => 'input',
+                               'size' => '30',
+                       ),
+               ),
+       ),
+       'types' => array(
+               '0' => array('showitem' => 'title;;;;1-1-1, description;;;;1-1-1, wsdl_url, mirror_list_url, last_update, extension_count'),
+       ),
+       'palettes' => array(
+               '1' => array('showitem' => ''),
+       ),
+);
+?>
\ No newline at end of file
index 055081c..42ec9bc 100644 (file)
                        <label index="tx_extensionmanager_domain_model_extension.updatecomment">Update Comment</label>
                        <label index="tx_extensionmanager_domain_model_extension.authorname">Author Name</label>
                        <label index="tx_extensionmanager_domain_model_extension.authoremail">Author Email</label>
+                       <label index="tx_extensionmanager_domain_model_extension.md5hash">Md5 hash</label>
+
+                       <label index="tx_extensionmanager_domain_model_repository">Repository</label>
+                       <label index="tx_extensionmanager_domain_model_repository.title">Titel</label>
+                       <label index="tx_extensionmanager_domain_model_repository.description">Description</label>
+                       <label index="tx_extensionmanager_domain_model_repository.wsdlUrl">WSDL URL</label>
+                       <label index="tx_extensionmanager_domain_model_repository.mirrorListUrl">Mirror list URL</label>
+                       <label index="tx_extensionmanager_domain_model_repository.lastUpdate">Last update</label>
+                       <label index="tx_extensionmanager_domain_model_repository.extensionCount">Extension count</label>
+
                </languageKey>
        </data>
 </T3locallang>
index f205f29..b4a7923 100644 (file)
@@ -2,6 +2,7 @@
 if (!defined('TYPO3_MODE')) {
        die('Access denied.');
 }
+
 $TCA['tx_extensionmanager_domain_model_extension'] = array(
        'ctrl' => array(
                'title' => 'LLL:EXT:extensionmanager/Resources/Private/Language/locallang_db.xml:tx_extensionmanager_domain_model_extension',
@@ -9,20 +10,37 @@ $TCA['tx_extensionmanager_domain_model_extension'] = array(
                'default_sortby' => '',
                'dynamicConfigFile' => \TYPO3\CMS\Core\Extension\ExtensionManager::extPath($_EXTKEY) . 'Configuration/TCA/Extension.php',
                'hideTable' => TRUE
-       )
+       ),
 );
+
+$TCA['tx_extensionmanager_domain_model_repository'] = array(
+       'ctrl' => array(
+               'title' => 'LLL:EXT:extensionmanager/Resources/Private/Language/locallang_db.xml:tx_extensionmanager_domain_model_repository',
+               'label' => 'uid',
+               'default_sortby' => '',
+               'dynamicConfigFile' => \TYPO3\CMS\Core\Extension\ExtensionManager::extPath($_EXTKEY) . 'Configuration/TCA/Repository.php',
+               'hideTable' => TRUE,
+       ),
+);
+
 if (TYPO3_MODE === 'BE') {
-       \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule($_EXTKEY, 'tools', 'extensionmanager', '', array(
-               'List' => 'index,ter,showAllVersions',
-               'Action' => 'toggleExtensionInstallationState,removeExtension,downloadExtensionZip,downloadExtensionData',
-               'Configuration' => 'showConfigurationForm,save',
-               'Download' => 'checkDependencies,installFromTer,updateExtension,updateCommentForUpdatableVersions',
-               'UpdateFromTer' => 'updateExtensionListFromTer',
-               'UploadExtensionFile' => 'form,extract'
-       ), array(
-               'access' => 'user,group',
-               'icon' => ('EXT:' . $_EXTKEY) . '/ext_icon.gif',
-               'labels' => ('LLL:EXT:' . $_EXTKEY) . '/Resources/Private/Language/locallang_mod.xml'
-       ));
+       \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
+               $_EXTKEY,
+               'tools',
+               'extensionmanager', '', array(
+                       'List' => 'index,ter,showAllVersions',
+                       'Action' => 'toggleExtensionInstallationState,removeExtension,downloadExtensionZip,downloadExtensionData',
+                       'Configuration' => 'showConfigurationForm,save',
+                       'Download' => 'checkDependencies,installFromTer,updateExtension,updateCommentForUpdatableVersions',
+                       'UpdateFromTer' => 'updateExtensionListFromTer',
+                       'UploadExtensionFile' => 'form,extract'
+               ),
+               array(
+                       'access' => 'user,group',
+                       'icon' => ('EXT:' . $_EXTKEY) . '/ext_icon.gif',
+                       'labels' => ('LLL:EXT:' . $_EXTKEY) . '/Resources/Private/Language/locallang_mod.xml'
+               )
+       );
 }
+
 ?>
\ No newline at end of file
index 39f7f6b..f3a3c2a 100644 (file)
@@ -1,14 +1,14 @@
 #
-# Table structure for table 'sys_ter'
+# Table structure for table 'tx_extensionmanager_domain_model_repository'
 #
-CREATE TABLE sys_ter (
+CREATE TABLE tx_extensionmanager_domain_model_repository (
   uid int(11) unsigned NOT NULL auto_increment,
   title varchar(150) NOT NULL default '',
   description mediumtext,
   wsdl_url varchar(100) NOT NULL default '',
-  mirror_url varchar(100) NOT NULL default '',
-  lastUpdated int(11) unsigned DEFAULT '0' NOT NULL,
-  extCount int(11) DEFAULT '0' NOT NULL,
+  mirror_list_url varchar(100) NOT NULL default '',
+  last_update int(11) unsigned DEFAULT '0' NOT NULL,
+  extension_count int(11) DEFAULT '0' NOT NULL,
   PRIMARY KEY (uid)
 );
 
@@ -17,7 +17,7 @@ CREATE TABLE sys_ter (
 #
 CREATE TABLE tx_extensionmanager_domain_model_extension (
   uid int(11) NOT NULL auto_increment,
-  extkey varchar(60) NOT NULL default '',
+  extension_key varchar(60) NOT NULL default '',
   repository int(11) unsigned NOT NULL default '1',
   version varchar(10) NOT NULL default '',
   alldownloadcounter int(11) unsigned NOT NULL default '0',
@@ -25,19 +25,19 @@ CREATE TABLE tx_extensionmanager_domain_model_extension (
   title varchar(150) NOT NULL default '',
   description mediumtext,
   state int(4) NOT NULL default '0',
-  reviewstate int(4) NOT NULL default '0',
+  review_state int(4) NOT NULL default '0',
   category int(4) NOT NULL default '0',
-  lastuploaddate int(11) unsigned NOT NULL default '0',
-  dependencies mediumtext,
-  authorname varchar(100) NOT NULL default '',
-  authoremail varchar(100) NOT NULL default '',
+  last_updated int(11) unsigned NOT NULL default '0',
+  serialized_dependencies mediumtext,
+  author_name varchar(100) NOT NULL default '',
+  author_email varchar(100) NOT NULL default '',
   ownerusername varchar(50) NOT NULL default '',
-  t3xfilemd5 varchar(35) NOT NULL default '',
-  uploadcomment mediumtext,
+  md5hash varchar(35) NOT NULL default '',
+  update_comment mediumtext,
   authorcompany varchar(100) NOT NULL default '',
-  intversion int(11) NOT NULL default '0',
-  lastversion int(3) NOT NULL default '0',
+  integer_version int(11) NOT NULL default '0',
+  current_version int(3) NOT NULL default '0',
   lastreviewedversion int(3) NOT NULL default '0',
   PRIMARY KEY (uid),
-  UNIQUE versionextrepo (extkey,version,repository)
-);
\ No newline at end of file
+  UNIQUE versionextrepo (extension_key,version,repository)
+);
index 8918d55..b35a85f 100644 (file)
@@ -1,19 +1,18 @@
 #
-# Table structure for table "sys_ter"
+# Table structure for table "tx_extensionmanager_domain_model_repository"
 #
-DROP TABLE IF EXISTS sys_ter;
-CREATE TABLE sys_ter (
+DROP TABLE IF EXISTS tx_extensionmanager_domain_model_repository;
+CREATE TABLE tx_extensionmanager_domain_model_repository (
   uid int(11) unsigned NOT NULL auto_increment,
   title varchar(150) NOT NULL default '',
   description mediumtext,
   wsdl_url varchar(100) NOT NULL default '',
-  mirror_url varchar(100) NOT NULL default '',
-  lastUpdated int(11) unsigned NOT NULL default '0',
-  extCount int(11) NOT NULL default '0',
+  mirror_list_url varchar(100) NOT NULL default '',
+  last_update int(11) unsigned DEFAULT '0' NOT NULL,
+  extension_count int(11) DEFAULT '0' NOT NULL,
   PRIMARY KEY (uid)
 );
 
 
-INSERT INTO sys_ter VALUES ('1', 'TYPO3.org Main Repository', 'Main repository on typo3.org. This repository has some mirrors configured which are available with the mirror url.', 'http://typo3.org/wsdl/tx_ter_wsdl.php', 'http://repositories.typo3.org/mirrors.xml.gz', '0', '0');
-
+INSERT INTO tx_extensionmanager_domain_model_repository VALUES ('1', 'TYPO3.org Main Repository', 'Main repository on typo3.org. This repository has some mirrors configured which are available with the mirror url.', 'http://typo3.org/wsdl/tx_ter_wsdl.php', 'http://repositories.typo3.org/mirrors.xml.gz', '1346191200', '0');
 
index 011d30e..e9f4d63 100644 (file)
@@ -1,42 +1,4 @@
 config.tx_extbase {
-       persistence{
-               classes {
-                       TYPO3\CMS\Extensionmanager\Domain\Model\Extension {
-                               mapping {
-                                       columns {
-                                               extkey.mapOnProperty = extensionKey
-                                               version.mapOnProperty = version
-                                               title.mapOnProperty = title
-                                               description.mapOnProperty = description
-                                               state.mapOnProperty = state
-                                               category.mapOnProperty = category
-                                               lastuploaddate.mapOnProperty = lastUpdated
-                                               uploadcomment.mapOnProperty = updateComment
-                                               authorname.mapOnProperty = authorName
-                                               authoremail.mapOnProperty = authorEmail
-                                               lastversion.mapOnProperty = currentVersion
-                                               t3xfilemd5.mapOnProperty = md5hash
-                                               dependencies.mapOnProperty = serializedDependencies
-                                               intversion.mapOnProperty = integerVersion
-                                               reviewstate.mapOnProperty = reviewState
-                                       }
-                               }
-                       }
-                       TYPO3\CMS\Extensionmanager\Domain\Model\Repository {
-                               mapping {
-                                       tableName = sys_ter
-                                       columns {
-                                               title.mapOnProperty = title
-                                               description.mapOnProperty = description
-                                               mirror_url.mapOnProperty = mirrorListUrl
-                                               wsdl_url.mapOnProperty = wsdlUrl
-                                               lastUpdated.mapOnProperty = lastUpdate
-                                               extCount.mapOnProperty = extensionCount
-                                       }
-                               }
-                       }
-               }
-       }
        features {
                 # this enables/disables the reworked property mapper (see http://forge.typo3.org/projects/typo3v4-mvc/wiki/PropertyMapper_rework)
                rewrittenPropertyMapper = 1