1

I created a new entity for my extension. These are the steps i followed:

  1. Generated the skeletal files using civix generate:entity command
  2. Edited the XML schema definitions as i needed.
  3. Generate your DAO and SQL files using civix generate:entity-boilerplate command.
  4. Generated the database upgrader.

After following these steps i found the 'auto_install.sql' has the sql query to create the table in DB. But when i uninstall the extension and reinstall it again it didn't created the table.

I even executed the sql query manually it works fine but when i reinstall it, it doesn't create the table.. what could be the reason?

Thank you very much in advance!

7
  • Can you check extension has Upgrader.php and Upgrader/Base.php? Commented Aug 19, 2020 at 17:48
  • @PradeepNayak yes it has. do i need to do any modification in it?
    – safron
    Commented Aug 19, 2020 at 17:51
  • Its under correct directory? Commented Aug 19, 2020 at 17:52
  • yes..but i didn't define any functions on it yet
    – safron
    Commented Aug 19, 2020 at 17:53
  • @PradeepNayak could you please help me with this?
    – safron
    Commented Aug 19, 2020 at 18:15

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.