Magento 2.3 What are the profits of using db_schema.xml instead of using setup script?What is the best way to implement a setup/install script for Magento 1.7+Is it possible to add logs in a setup script?Is it necessary to addIndex() on Setup Script?Magento 2.3: One or more indexers are invalidMagento 2.3 admin not working after grunt setupWhat is use of reactJS in magento 2.3Setup Script throws Error : Call to undefined method Mage_Core_Model_Resource_Setup::addAttribute()Magento2: What is the difference between Magento 2.2 and 2.3?Magento 2.3 - Need detail about some newly introduced featureMagento 2.3 : Insert data into table using DeclarativeSchema

Will google still index a page if I use a $_SESSION variable?

UK: Is there precedent for the governments e-petition site changing the direction of a government decision?

Could gravitational lensing be used to protect a spaceship from a laser?

Should I tell management that I intend to leave due to bad software development practices?

How badly should I try to prevent a user from XSSing themselves?

How can I make my BBEG immortal short of making them a Lich or Vampire?

Does casting Light, or a similar spell, have any effect when the caster is swallowed by a monster?

What is the intuition behind short exact sequences of groups; in particular, what is the intuition behind group extensions?

How to draw the figure with four pentagons?

Famous Pre Reformation Christian Pastors (Non Catholic and Non Orthodox)

How can I prevent hyper evolved versions of regular creatures from wiping out their cousins?

Alternative to sending password over mail?

Can I ask the recruiters in my resume to put the reason why I am rejected?

How to say in German "enjoying home comforts"

What exploit are these user agents trying to use?

Took a trip to a parallel universe, need help deciphering

Do I have a twin with permutated remainders?

Is it inappropriate for a student to attend their mentor's dissertation defense?

Can I use a neutral wire from another outlet to repair a broken neutral?

Did Shadowfax go to Valinor?

A reference to a well-known characterization of scattered compact spaces

Is it legal for company to use my work email to pretend I still work there?

Blender 2.8 I can't see vertices, edges or faces in edit mode

Were any external disk drives stacked vertically?



Magento 2.3 What are the profits of using db_schema.xml instead of using setup script?


What is the best way to implement a setup/install script for Magento 1.7+Is it possible to add logs in a setup script?Is it necessary to addIndex() on Setup Script?Magento 2.3: One or more indexers are invalidMagento 2.3 admin not working after grunt setupWhat is use of reactJS in magento 2.3Setup Script throws Error : Call to undefined method Mage_Core_Model_Resource_Setup::addAttribute()Magento2: What is the difference between Magento 2.2 and 2.3?Magento 2.3 - Need detail about some newly introduced featureMagento 2.3 : Insert data into table using DeclarativeSchema






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















Magento 2.3 used db_schema.xml instead of setup script. What are the benefits of using db_schema.xml over setup script?










share|improve this question







New contributor




Jazz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


























    1















    Magento 2.3 used db_schema.xml instead of setup script. What are the benefits of using db_schema.xml over setup script?










    share|improve this question







    New contributor




    Jazz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.






















      1












      1








      1








      Magento 2.3 used db_schema.xml instead of setup script. What are the benefits of using db_schema.xml over setup script?










      share|improve this question







      New contributor




      Jazz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      Magento 2.3 used db_schema.xml instead of setup script. What are the benefits of using db_schema.xml over setup script?







      magento2.3 setup-script magento2.3.1 declarative-schema






      share|improve this question







      New contributor




      Jazz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      Jazz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      Jazz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 6 hours ago









      JazzJazz

      462




      462




      New contributor




      Jazz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Jazz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Jazz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




















          2 Answers
          2






          active

          oldest

          votes


















          2














          According to devdocs:




          When a customer upgrades Magento to a version several releases ahead
          of the installed version, the upgrade script for each intermediate
          release still executes. Developers were required to fully understand
          what each install and upgrade script contained. They needed to account
          for this complexity when creating extensions.



          The new declarative schema approach allows developers to declare the
          final desired state of the database and has the system adjust to it
          automatically, without performing redundant operations. Developers are
          no longer forced to write scripts for each new version. In addition,
          this approach allows data be deleted when a module is uninstalled.




          More detail






          share|improve this answer






























            0














            Please Can you read the developer doc of magento. there is a very peaceful description about db_schema.xml



            for more information please read this one db_schema






            share|improve this answer























              Your Answer








              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "479"
              ;
              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',
              autoActivateHeartbeat: false,
              convertImagesToLinks: false,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              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
              );



              );






              Jazz is a new contributor. Be nice, and check out our Code of Conduct.









              draft saved

              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f268828%2fmagento-2-3-what-are-the-profits-of-using-db-schema-xml-instead-of-using-setup-s%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              2














              According to devdocs:




              When a customer upgrades Magento to a version several releases ahead
              of the installed version, the upgrade script for each intermediate
              release still executes. Developers were required to fully understand
              what each install and upgrade script contained. They needed to account
              for this complexity when creating extensions.



              The new declarative schema approach allows developers to declare the
              final desired state of the database and has the system adjust to it
              automatically, without performing redundant operations. Developers are
              no longer forced to write scripts for each new version. In addition,
              this approach allows data be deleted when a module is uninstalled.




              More detail






              share|improve this answer



























                2














                According to devdocs:




                When a customer upgrades Magento to a version several releases ahead
                of the installed version, the upgrade script for each intermediate
                release still executes. Developers were required to fully understand
                what each install and upgrade script contained. They needed to account
                for this complexity when creating extensions.



                The new declarative schema approach allows developers to declare the
                final desired state of the database and has the system adjust to it
                automatically, without performing redundant operations. Developers are
                no longer forced to write scripts for each new version. In addition,
                this approach allows data be deleted when a module is uninstalled.




                More detail






                share|improve this answer

























                  2












                  2








                  2







                  According to devdocs:




                  When a customer upgrades Magento to a version several releases ahead
                  of the installed version, the upgrade script for each intermediate
                  release still executes. Developers were required to fully understand
                  what each install and upgrade script contained. They needed to account
                  for this complexity when creating extensions.



                  The new declarative schema approach allows developers to declare the
                  final desired state of the database and has the system adjust to it
                  automatically, without performing redundant operations. Developers are
                  no longer forced to write scripts for each new version. In addition,
                  this approach allows data be deleted when a module is uninstalled.




                  More detail






                  share|improve this answer













                  According to devdocs:




                  When a customer upgrades Magento to a version several releases ahead
                  of the installed version, the upgrade script for each intermediate
                  release still executes. Developers were required to fully understand
                  what each install and upgrade script contained. They needed to account
                  for this complexity when creating extensions.



                  The new declarative schema approach allows developers to declare the
                  final desired state of the database and has the system adjust to it
                  automatically, without performing redundant operations. Developers are
                  no longer forced to write scripts for each new version. In addition,
                  this approach allows data be deleted when a module is uninstalled.




                  More detail







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 6 hours ago









                  Sohel RanaSohel Rana

                  23.1k34461




                  23.1k34461























                      0














                      Please Can you read the developer doc of magento. there is a very peaceful description about db_schema.xml



                      for more information please read this one db_schema






                      share|improve this answer



























                        0














                        Please Can you read the developer doc of magento. there is a very peaceful description about db_schema.xml



                        for more information please read this one db_schema






                        share|improve this answer

























                          0












                          0








                          0







                          Please Can you read the developer doc of magento. there is a very peaceful description about db_schema.xml



                          for more information please read this one db_schema






                          share|improve this answer













                          Please Can you read the developer doc of magento. there is a very peaceful description about db_schema.xml



                          for more information please read this one db_schema







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered 6 hours ago









                          Magento_BhurioMagento_Bhurio

                          374110




                          374110




















                              Jazz is a new contributor. Be nice, and check out our Code of Conduct.









                              draft saved

                              draft discarded


















                              Jazz is a new contributor. Be nice, and check out our Code of Conduct.












                              Jazz is a new contributor. Be nice, and check out our Code of Conduct.











                              Jazz is a new contributor. Be nice, and check out our Code of Conduct.














                              Thanks for contributing an answer to Magento Stack Exchange!


                              • 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%2fmagento.stackexchange.com%2fquestions%2f268828%2fmagento-2-3-what-are-the-profits-of-using-db-schema-xml-instead-of-using-setup-s%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

                              Best approach to update all entries in a list that is paginated?Best way to add items to a paginated listChoose Your Country: Best Usability approachUpdate list when a user is viewing the list without annoying themWhen would the best day to update your webpage be?What should happen when I add a Row to a paginated, sorted listShould I adopt infinite scrolling or classical pagination?How to show user that page objects automatically updateWhat is the best location to locate the comments section in a list pageBest way to combine filtering and selecting items in a listWhen one of two inputs must be updated to satisfy a consistency criteria, which should you update (if at all)?

                              Вунгтау (аеропорт) Загальні відомості | Див. також | Посилання | Навігаційне меню10°22′00″ пн. ш. 107°05′00″ сх. д. / 10.36667° пн. ш. 107.08333° сх. д. / 10.36667; 107.0833310°22′00″ пн. ш. 107°05′00″ сх. д. / 10.36667° пн. ш. 107.08333° сх. д. / 10.36667; 107.083337731608Vinh AirportVinh airport facelift improves serviceвиправивши або дописавши їївиправивши або дописавши їїр

                              Тонконіг бульбистий Зміст Опис | Поширення | Екологія | Господарське значення | Примітки | Див. також | Література | Джерела | Посилання | Навігаційне меню1114601320038-241116202404kew-435458Poa bulbosaЭлектронный каталог сосудистых растений Азиатской России [Електронний каталог судинних рослин Азіатської Росії]Малышев Л. Л. Дикие родичи культурных растений. Poa bulbosa L. - Мятлик луковичный. [Малишев Л. Л. Дикі родичи культурних рослин. Poa bulbosa L. - Тонконіг бульбистий.]Мятлик (POA) Сем. Злаки (Мятликовые) [Тонконіг (POA) Род. Злаки (Тонконогові)]Poa bulbosa Linnaeus, Sp. Pl. 1: 70. 1753. 鳞茎早熟禾 lin jing zao shu he (Description from Flora of China) [Poa bulbosa Linnaeus, Sp. Pl. 1: 70. 1753. 鳞茎早熟禾 lin jing zao shu he (Опис від Флора Китаю)]Poa bulbosa L. – lipnice cibulkatá / lipnica cibulkatáPoa bulbosa в базі даних Poa bulbosa на сайті Poa bulbosa в базі даних «Global Biodiversity Information Facility» (GBIF)Poa bulbosa в базі даних «Euro + Med PlantBase» — інформаційному ресурсі для Євро-середземноморського розмаїття рослинPoa bulbosa L. на сайті «Плантариум»