init
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
-->
|
||||
<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
|
||||
<table name="test_table" resource="default" comment="Test Table">
|
||||
<column xsi:type="int" name="page_id" nullable="false" />
|
||||
<column xsi:type="varchar" name="email" nullable="false" />
|
||||
<column xsi:type="varchar" name="title" />
|
||||
<constraint xsi:type="primary" referenceId="PRIMARY">
|
||||
<column name="page_id" />
|
||||
<column name="email" />
|
||||
</constraint>
|
||||
</table>
|
||||
</schema>
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"test_table": {
|
||||
"column": {
|
||||
"page_id": true,
|
||||
"email": true,
|
||||
"title": true
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
-->
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
|
||||
<module name="Magento_TestSetupDeclarationModule4" setup_version="1.0.0" />
|
||||
</config>
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
return [
|
||||
[
|
||||
'page_id' => '1',
|
||||
'email' => '1@gmail.com',
|
||||
'title' => 'Title1'
|
||||
],
|
||||
[
|
||||
'page_id' => '2',
|
||||
'email' => '2@gmail.com',
|
||||
'title' => 'Title2'
|
||||
],
|
||||
[
|
||||
'page_id' => '3',
|
||||
'email' => '3@gmail.com',
|
||||
'title' => 'Title3'
|
||||
],
|
||||
[
|
||||
'page_id' => '4',
|
||||
'email' => '4@gmail.com',
|
||||
'title' => 'Title4'
|
||||
]
|
||||
];
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
use Magento\Framework\Component\ComponentRegistrar;
|
||||
|
||||
$registrar = new ComponentRegistrar();
|
||||
if ($registrar->getPath(ComponentRegistrar::MODULE, 'Magento_TestSetupDeclarationModule4') === null) {
|
||||
ComponentRegistrar::register(ComponentRegistrar::MODULE, 'Magento_TestSetupDeclarationModule4', __DIR__);
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
-->
|
||||
<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
|
||||
<table name="test_table" resource="default" comment="Test Table">
|
||||
<column xsi:type="int" name="page_id" nullable="false" />
|
||||
<column xsi:type="varchar" name="email" nullable="false" />
|
||||
<constraint xsi:type="primary" referenceId="PRIMARY">
|
||||
<column name="page_id" />
|
||||
<column name="email" />
|
||||
</constraint>
|
||||
</table>
|
||||
</schema>
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
-->
|
||||
<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
|
||||
<table name="test_table" resource="default" comment="Test Table">
|
||||
<column xsi:type="int" name="page_id" nullable="false" />
|
||||
<column xsi:type="varchar" name="email" nullable="false" />
|
||||
<column xsi:type="varchar" name="title" />
|
||||
<constraint xsi:type="primary" referenceId="PRIMARY">
|
||||
<column name="page_id" />
|
||||
<column name="email" />
|
||||
</constraint>
|
||||
</table>
|
||||
</schema>
|
||||
Reference in New Issue
Block a user