Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

12220-Declarative-Schema-for-all-extensions #46

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 0 additions & 86 deletions Setup/InstallSchema.php

This file was deleted.

20 changes: 20 additions & 0 deletions etc/db_schema.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0"?>
<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
<table name="magefan_login_as_customer" resource="default" engine="innodb" comment="Magefan Login As Customer Table">
<column xsi:type="int" name="login_id" padding="11" unsigned="false" nullable="false" identity="true" comment="Admin Login ID"/>
<column xsi:type="int" name="customer_id" padding="11" unsigned="false" nullable="true" identity="false" comment="Customer ID"/>
<column xsi:type="int" name="admin_id" padding="11" unsigned="false" nullable="true" identity="false" comment="Admin ID"/>
<column xsi:type="varchar" name="secret" nullable="true" length="64" comment="Login Secret"/>
<column xsi:type="smallint" name="used" padding="6" unsigned="false" nullable="false" identity="false" default="1" comment="Is Login Used"/>
<column xsi:type="timestamp" name="created_at" on_update="false" nullable="true" comment="Creation Time"/>
<constraint xsi:type="primary" referenceId="PRIMARY">
<column name="login_id"/>
</constraint>
<index referenceId="MAGEFAN_LOGIN_AS_CUSTOMER_CUSTOMER_ID" indexType="btree">
<column name="customer_id"/>
</index>
<index referenceId="MAGEFAN_LOGIN_AS_CUSTOMER_ADMIN_ID" indexType="btree">
<column name="admin_id"/>
</index>
</table>
</schema>