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
Why is 150k or 200k jobs considered good when there's 300k+ births a month?
Is it unprofessional to ask if a job posting on GlassDoor is real?
Can you really stack all of this on an Opportunity Attack?
Alternative to sending password over mail?
strTok function (thread safe, supports empty tokens, doesn't change string)
If human space travel is limited by the G force vulnerability, is there a way to counter G forces?
Convert two switches to a dual stack, and add outlet - possible here?
Do infinite dimensional systems make sense?
How to efficiently unroll a matrix by value with numpy?
How do I deal with an unproductive colleague in a small company?
Replacing matching entries in one column of a file by another column from a different file
Character reincarnated...as a snail
Why are electrically insulating heatsinks so rare? Is it just cost?
Theorems that impeded progress
Watching something be written to a file live with tail
Is it possible to record a short contained sound no longer than 60 milliseconds?
I'm flying to France today and my passport expires in less than 2 months
Can a Cauchy sequence converge for one metric while not converging for another?
Do I have a twin with permutated remainders?
Add text to same line using sed
How does one intimidate enemies without having the capacity for violence?
Client team has low performances and low technical skills: we always fix their work and now they stop collaborate with us. How to solve?
Maximum likelihood parameters deviate from posterior distributions
Paid for article while in US on F-1 visa?
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;
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
New contributor
add a comment |
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
New contributor
add a comment |
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
New contributor
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
magento2.3 setup-script magento2.3.1 declarative-schema
New contributor
New contributor
New contributor
asked yesterday
JazzJazz
512
512
New contributor
New contributor
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
add a comment |
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
add a comment |
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
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
answered yesterday
Sohel RanaSohel Rana
23.1k34461
23.1k34461
add a comment |
add a comment |
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
add a comment |
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
add a comment |
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
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
answered yesterday
Magento_BhurioMagento_Bhurio
374110
374110
add a comment |
add a comment |
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.
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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