Magento Expert Forum - Improve your Magento experience

Results 1 to 8 of 8

How to create custom table in Magento2 Module?

  1. #1

  2. #2

  3. #3
    Junior Member
    Join Date
    Sep 2016
    Posts
    169
    Thanks
    0
    Thanked 2 Times in 2 Posts

  4. #4
    New member
    Join Date
    May 2018
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    hello please helping me to find out that how we can print or access custom collection.
    Mageplaza\HelloWorld\Block\Post.php

    -----------------
    we Iqbal Engineering Company deal in all type of Wholesale Saloon Chairs and Barber chair in pakistan

  5. #5
    Junior Member
    Join Date
    May 2018
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    For Beginners such like me, It's helpful

  6. #6
    Junior Member
    Join Date
    Jun 2018
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thanks for sharing with us

  7. #7
    Junior Member fay_khattak's Avatar
    Join Date
    Jan 2016
    Location
    Karachi, Pakistan
    Posts
    51
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    To create custom tables for Magento 2 module, setup scripts can come in handy in such cases. Setup scripts in Magento 2 are essential when writing custom modules. We have 6 different types of Setup Scripts that can be used with our custom modules:

    - InstallSchema
    - UpgradeSchema
    - InstallData
    - UpgradeData
    - Recurring
    - Uninstall

    Setup scripts in Magento 2 are triggered using the Command Line Interface (CLI). To know more about it, check out this blog post:

    https://www.cloudways.com/blog/setup...-in-magento-2/

  8. #8
    Junior Member
    Join Date
    Sep 2017
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you for the informative post.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •