ltsecurityinc安防产品在线商城代码
This commit is contained in:
+69
@@ -0,0 +1,69 @@
|
||||
<?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="reference_table" resource="default">
|
||||
<column xsi:type="tinyint" name="tinyint_ref" padding="7" nullable="false" identity="true" unsigned="false"/>
|
||||
<column xsi:type="tinyint" name="tinyint_without_padding" default="0" nullable="false" unsigned="false"/>
|
||||
<column xsi:type="bigint" name="bigint_without_padding" default="0" nullable="false" unsigned="false"/>
|
||||
<column xsi:type="smallint" name="smallint_without_padding" default="0" nullable="false" unsigned="false"/>
|
||||
<column xsi:type="int" name="integer_without_padding" default="0" nullable="false" unsigned="false"/>
|
||||
<column xsi:type="smallint" name="smallint_with_big_padding" padding="254" default="0" nullable="false"
|
||||
unsigned="false"/>
|
||||
<column xsi:type="smallint" name="smallint_without_default" padding="2" nullable="true" unsigned="false"/>
|
||||
<column xsi:type="int" name="int_without_unsigned" padding="2" nullable="true"/>
|
||||
<column xsi:type="int" name="int_unsigned" padding="2" nullable="true" unsigned="true"/>
|
||||
<column xsi:type="bigint" name="bigint_default_nullable" padding="2" nullable="true" default="1"
|
||||
unsigned="true"/>
|
||||
<column xsi:type="bigint" name="bigint_not_default_not_nullable" padding="2" nullable="false" unsigned="true"/>
|
||||
<constraint xsi:type="primary" referenceId="tinyint_primary">
|
||||
<column name="tinyint_ref"/>
|
||||
</constraint>
|
||||
</table>
|
||||
<table name="auto_increment_test" resource="default">
|
||||
<column xsi:type="int" name="int_auto_increment_with_nullable" identity="true" padding="12" unsigned="true"
|
||||
nullable="true"/>
|
||||
<column xsi:type="smallint" name="int_disabled_auto_increment" default="0" identity="false" padding="12"
|
||||
unsigned="true" nullable="true"/>
|
||||
<constraint xsi:type="unique" referenceId="AUTO_INCREMENT_TEST_INT_AUTO_INCREMENT_WITH_NULLABLE">
|
||||
<column name="int_auto_increment_with_nullable"/>
|
||||
</constraint>
|
||||
</table>
|
||||
<table name="test_table" resource="default">
|
||||
<!--Columns-->
|
||||
<column xsi:type="smallint" identity="true" name="smallint" padding="3" nullable="true"/>
|
||||
<column xsi:type="tinyint" name="tinyint" padding="7" nullable="true" unsigned="false"/>
|
||||
<column xsi:type="bigint" name="bigint" default="0" padding="13" nullable="true" unsigned="false"/>
|
||||
<column xsi:type="float" name="float" default="0" scale="4" precision="12"/>
|
||||
<column xsi:type="decimal" name="double" default="11111111.111111" precision="14" scale="6"/>
|
||||
<column xsi:type="decimal" name="decimal" default="0" scale="4" precision="15"/>
|
||||
<column xsi:type="date" name="date"/>
|
||||
<column xsi:type="timestamp" name="timestamp" default="CURRENT_TIMESTAMP" on_update="true"/>
|
||||
<column xsi:type="datetime" name="datetime" default="0"/>
|
||||
<column xsi:type="longtext" name="longtext"/>
|
||||
<column xsi:type="mediumtext" name="mediumtext"/>
|
||||
<column xsi:type="varchar" name="varchar" length="254" nullable="true"/>
|
||||
<column xsi:type="mediumblob" name="mediumblob"/>
|
||||
<column xsi:type="blob" name="blob"/>
|
||||
<column xsi:type="boolean" name="boolean"/>
|
||||
<column xsi:type="varbinary" name="varbinary_rename" default="10101" disabled="true"/>
|
||||
<!--Constraints-->
|
||||
<constraint xsi:type="unique" referenceId="TEST_TABLE_SMALLINT_BIGINT">
|
||||
<column name="smallint"/>
|
||||
<column name="bigint"/>
|
||||
</constraint>
|
||||
<constraint xsi:type="foreign" referenceId="TEST_TABLE_TINYINT_REFERENCE_TABLE_TINYINT_REF"
|
||||
column="tinyint" table="test_table"
|
||||
referenceTable="reference_table" referenceColumn="tinyint_ref" onDelete="NO ACTION"/>
|
||||
<!--Indexes-->
|
||||
<index referenceId="TEST_TABLE_TINYINT_BIGINT" indexType="btree">
|
||||
<column name="tinyint"/>
|
||||
<column name="bigint"/>
|
||||
</index>
|
||||
</table>
|
||||
</schema>
|
||||
+56
@@ -0,0 +1,56 @@
|
||||
{
|
||||
"reference_table": {
|
||||
"column": {
|
||||
"tinyint_ref": true,
|
||||
"tinyint_without_padding": true,
|
||||
"bigint_without_padding": true,
|
||||
"integer_without_padding": true,
|
||||
"smallint_with_big_padding": true,
|
||||
"smallint_without_default": true,
|
||||
"int_without_unsigned": true,
|
||||
"int_unsigned": true,
|
||||
"bigint_default_nullable": true,
|
||||
"bigint_not_default_not_nullable": true,
|
||||
"smallint_without_padding": true
|
||||
},
|
||||
"constraint": {
|
||||
"tinyint_primary": true
|
||||
}
|
||||
},
|
||||
"auto_increment_test": {
|
||||
"column": {
|
||||
"int_auto_increment_with_nullable": true,
|
||||
"int_disabled_auto_increment": true
|
||||
},
|
||||
"constraint": {
|
||||
"AUTO_INCREMENT_TEST_INT_AUTO_INCREMENT_WITH_NULLABLE": true
|
||||
}
|
||||
},
|
||||
"test_table": {
|
||||
"column": {
|
||||
"smallint": true,
|
||||
"tinyint": true,
|
||||
"bigint": true,
|
||||
"float": true,
|
||||
"double": true,
|
||||
"decimal": true,
|
||||
"date": true,
|
||||
"timestamp": true,
|
||||
"datetime": true,
|
||||
"longtext": true,
|
||||
"mediumtext": true,
|
||||
"varchar": true,
|
||||
"mediumblob": true,
|
||||
"blob": true,
|
||||
"boolean": true,
|
||||
"varbinary_rename": true
|
||||
},
|
||||
"index": {
|
||||
"TEST_TABLE_TINYINT_BIGINT": true
|
||||
},
|
||||
"constraint": {
|
||||
"TEST_TABLE_SMALLINT_BIGINT": true,
|
||||
"TEST_TABLE_TINYINT_REFERENCE_TABLE_TINYINT_REF": 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_TestSetupDeclarationModule6" />
|
||||
</config>
|
||||
Reference in New Issue
Block a user