Database Migration in TYPO3











up vote
0
down vote

favorite












I've started to refactor the ext:crawler to make it compatible with TYPO3 9LTS.



Currently we have a domain model based only on a database table + a TCA configuration:



https://github.com/AOEpeople/crawler/blob/master/ext_tables.sql#L48
https://github.com/AOEpeople/crawler/blob/master/Configuration/TCA/tx_crawler_configuration.php



I want to add a regular Domain Model and Repository for the Configurations instead, to benefit more from the code from TYPO3 Core.



My problem is currently:



I don't know how to migrate data from the already existing table tx_crawler_configuration to the new tx_crawler_domain_model_configuration without the users are loosing any data, or need to do any manual work.



I haven't found anything on this topic yet. I know I can "use foreign data source" but it's not foreign data, so not sure this is the best approach.
https://docs.typo3.org/typo3cms/ExtbaseFluidBook/6-Persistence/4-use-foreign-data-sources.html



I appreciate your input, thanks.










share|improve this question




























    up vote
    0
    down vote

    favorite












    I've started to refactor the ext:crawler to make it compatible with TYPO3 9LTS.



    Currently we have a domain model based only on a database table + a TCA configuration:



    https://github.com/AOEpeople/crawler/blob/master/ext_tables.sql#L48
    https://github.com/AOEpeople/crawler/blob/master/Configuration/TCA/tx_crawler_configuration.php



    I want to add a regular Domain Model and Repository for the Configurations instead, to benefit more from the code from TYPO3 Core.



    My problem is currently:



    I don't know how to migrate data from the already existing table tx_crawler_configuration to the new tx_crawler_domain_model_configuration without the users are loosing any data, or need to do any manual work.



    I haven't found anything on this topic yet. I know I can "use foreign data source" but it's not foreign data, so not sure this is the best approach.
    https://docs.typo3.org/typo3cms/ExtbaseFluidBook/6-Persistence/4-use-foreign-data-sources.html



    I appreciate your input, thanks.










    share|improve this question


























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I've started to refactor the ext:crawler to make it compatible with TYPO3 9LTS.



      Currently we have a domain model based only on a database table + a TCA configuration:



      https://github.com/AOEpeople/crawler/blob/master/ext_tables.sql#L48
      https://github.com/AOEpeople/crawler/blob/master/Configuration/TCA/tx_crawler_configuration.php



      I want to add a regular Domain Model and Repository for the Configurations instead, to benefit more from the code from TYPO3 Core.



      My problem is currently:



      I don't know how to migrate data from the already existing table tx_crawler_configuration to the new tx_crawler_domain_model_configuration without the users are loosing any data, or need to do any manual work.



      I haven't found anything on this topic yet. I know I can "use foreign data source" but it's not foreign data, so not sure this is the best approach.
      https://docs.typo3.org/typo3cms/ExtbaseFluidBook/6-Persistence/4-use-foreign-data-sources.html



      I appreciate your input, thanks.










      share|improve this question















      I've started to refactor the ext:crawler to make it compatible with TYPO3 9LTS.



      Currently we have a domain model based only on a database table + a TCA configuration:



      https://github.com/AOEpeople/crawler/blob/master/ext_tables.sql#L48
      https://github.com/AOEpeople/crawler/blob/master/Configuration/TCA/tx_crawler_configuration.php



      I want to add a regular Domain Model and Repository for the Configurations instead, to benefit more from the code from TYPO3 Core.



      My problem is currently:



      I don't know how to migrate data from the already existing table tx_crawler_configuration to the new tx_crawler_domain_model_configuration without the users are loosing any data, or need to do any manual work.



      I haven't found anything on this topic yet. I know I can "use foreign data source" but it's not foreign data, so not sure this is the best approach.
      https://docs.typo3.org/typo3cms/ExtbaseFluidBook/6-Persistence/4-use-foreign-data-sources.html



      I appreciate your input, thanks.







      php typo3 database-migration typo3-extensions typo3-9.x






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 12 at 9:20









      Peter Kraume

      619313




      619313










      asked Nov 11 at 19:48









      Tomasnorre

      1175




      1175
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          Torben Hansen just did something similar, when he migrated sf_bannners from using own Category concept to use the sys_category concept of TYPO3



          What he does is creating a ext_update.php script that is being called automatically upon installation. You can see his commit here



          https://github.com/derhansen/sf_banners/commit/02c2c6f1729b96940bb4dd0ca29761fe48d28c14



          and probably catch him on Slack with any questions






          share|improve this answer





















          • Thanks will look into this.. Looks like at least a step in the right direction.
            – Tomasnorre
            Nov 11 at 20:24











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53252559%2fdatabase-migration-in-typo3%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          1
          down vote



          accepted










          Torben Hansen just did something similar, when he migrated sf_bannners from using own Category concept to use the sys_category concept of TYPO3



          What he does is creating a ext_update.php script that is being called automatically upon installation. You can see his commit here



          https://github.com/derhansen/sf_banners/commit/02c2c6f1729b96940bb4dd0ca29761fe48d28c14



          and probably catch him on Slack with any questions






          share|improve this answer





















          • Thanks will look into this.. Looks like at least a step in the right direction.
            – Tomasnorre
            Nov 11 at 20:24















          up vote
          1
          down vote



          accepted










          Torben Hansen just did something similar, when he migrated sf_bannners from using own Category concept to use the sys_category concept of TYPO3



          What he does is creating a ext_update.php script that is being called automatically upon installation. You can see his commit here



          https://github.com/derhansen/sf_banners/commit/02c2c6f1729b96940bb4dd0ca29761fe48d28c14



          and probably catch him on Slack with any questions






          share|improve this answer





















          • Thanks will look into this.. Looks like at least a step in the right direction.
            – Tomasnorre
            Nov 11 at 20:24













          up vote
          1
          down vote



          accepted







          up vote
          1
          down vote



          accepted






          Torben Hansen just did something similar, when he migrated sf_bannners from using own Category concept to use the sys_category concept of TYPO3



          What he does is creating a ext_update.php script that is being called automatically upon installation. You can see his commit here



          https://github.com/derhansen/sf_banners/commit/02c2c6f1729b96940bb4dd0ca29761fe48d28c14



          and probably catch him on Slack with any questions






          share|improve this answer












          Torben Hansen just did something similar, when he migrated sf_bannners from using own Category concept to use the sys_category concept of TYPO3



          What he does is creating a ext_update.php script that is being called automatically upon installation. You can see his commit here



          https://github.com/derhansen/sf_banners/commit/02c2c6f1729b96940bb4dd0ca29761fe48d28c14



          and probably catch him on Slack with any questions







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 11 at 20:15









          Soren Malling

          48229




          48229












          • Thanks will look into this.. Looks like at least a step in the right direction.
            – Tomasnorre
            Nov 11 at 20:24


















          • Thanks will look into this.. Looks like at least a step in the right direction.
            – Tomasnorre
            Nov 11 at 20:24
















          Thanks will look into this.. Looks like at least a step in the right direction.
          – Tomasnorre
          Nov 11 at 20:24




          Thanks will look into this.. Looks like at least a step in the right direction.
          – Tomasnorre
          Nov 11 at 20:24


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53252559%2fdatabase-migration-in-typo3%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Florida Star v. B. J. F.

          Danny Elfman

          Lugert, Oklahoma