Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7695491
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T21:33:25+00:00 2026-05-31T21:33:25+00:00

I am coding an extension for eZPublish which has an own eZPersistantObject, so it

  • 0

I am coding an extension for eZPublish which has an own eZPersistantObject, so it needs an own database table.

Is there any way to provide a kind of setup.php or something, which runs on extension activation and creates the table?

Thanks for your responses.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T21:33:26+00:00Added an answer on May 31, 2026 at 9:33 pm

    Seems like when installing extensions in your CMS you are also required to do further steps manually like doing changes to the database. See http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Installation/Extensions So I don’t think that eZPublish supports this kind of setup.

    You can of course do such thing manually, like do a CREATE TABLE IF NOT EXISTS on each request. A dirty solution: put your setup.php somewhere in your extension folder, make it writeable and after the first execution simply remove it. Just add unlink(__FILE__); at the end of setup.php.

    If you want some cleaner solution you can have a directory with database migration scripts and a table that keeps track which of those scripts have been executed. On each request you then check if there are new migration scripts and execute, if necessary.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

At the moment, I am coding an Google Chrome extension (in Javascript) which interfaces
I'm coding an extension to change the way PHP handles errors. Where is '
Coding footer naively, if there's not enough content, then there will be empty space
The coding is done using VS2008 There are two divs in my page namely
i'm searching for a way to change the language of the Spell Checker-Extension for
I am coding a web application in PHP and it has some performance intensive
i am learning extension method, a very handy feature, which can save number of
I am currently coding an application that involves navigating between pivot control. There will
This might be an unusual question, but is there any framework or at least
I'm coding an extension in C# using the Managed Extensibility Framework (MEF). How can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.