How does doctrine work together with the upgrade function in the Zikula_AbstractInstaller.
Here the things I want to do:
1. Add a new table in a new version of a module
2. Add a new column in already existing table in a new version of a module
Thank you for your answers
--
https://github.com/phaidon/
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- rgasch created topic »Using PageUtil::addVar() to load script code« 11:48 AM
- michiel responded to »password problem« 10:01 AM
- mazdev responded to »Hide "Register new account" and change template to 3 col« 07:50 AM
- mesteele101 created topic »Zikula 1.3.3 - Site Search 1.5.2 - Unable to turn off plug-ins« 07:48 AM
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Zikula_AbstractInstaller/upgrade and doctrine
-
- Rank: Freshman
- Registered: Jul 28, 2010
- Last visit:
- Posts: 98
-
- Rank: Team Member
- Registered: Jan 19, 2003
- Last visit: Apr 06, 2010
- Posts: 442
-
- Rank: Freshman
- Registered: Jul 28, 2010
- Last visit:
- Posts: 98
I talk about https://github.com/phaidon/Wikula
It is Doctrine 1 isn't it?
By the way do I have to change it to Doctrine 2?
--
https://github.com/phaidon/ -
- Rank: Team Member
- Registered: Jan 19, 2003
- Last visit: Apr 06, 2010
- Posts: 442
Yes it is Doctrine 1.
For your upgrade code you can use the methods from DoctrineUtil (see /lib/util/) for adding or dropping columns, indexes and so on. Last do DoctrineUtil::createTablesFromModels('Wikula'); to create the new tables.
Conversion to Doctrine 2 can be done at any time, but should be treated separately and maybe postponed for another release of the module.
--
Guite | ModuleStudio -
- Rank: Freshman
- Registered: Jul 28, 2010
- Last visit:
- Posts: 98
Thanks a lot.
Doctrine 2 seems for me at the moment not very easy. I will take a look at this later.
--
https://github.com/phaidon/ -
- Rank: Software Foundation
- Registered: Jul 21, 2001
- Last visit: May 31, 2010
- Posts: 624
Better to get used to Doctrine 2 because Doctrine 1 is not supported anymore upstream and we are moving away from it immediately starting in 1.4. That's why modules should start using it now. The transition is quite easy actually.
Drak
--
Zikula Lead Developer
Board Member of the Zikula Foundation
Follow me on twitter.com/zikuladrak -
- Rank: Team Member
- Registered: Jul 15, 2004
- Last visit: May 27, 2010
- Posts: 277
I thought that Zikula 1.3.0 is a Long Term Support Release.
Then we should support Doctrine 1 for a long term, right?
-
- Rank: Software Foundation
- Registered: Jul 21, 2001
- Last visit: May 31, 2010
- Posts: 624
If I recall, we already discussed this. Doctrine 1 was announced as EOL even before we released Zikula 1.3.0 and the official advice has been to start using Doctrine 2. Module developers were explained that it would be better if they do not release D1 modules and if they do, they quickly convert them to D2. DBUtil is based on D1 and we also advice people not to use DBUtil - these are all to be considered legacy components. !.3.0 is an LTS release but we cannot maintain vendor libraries, sorry. That's what the official advice has been to module developers.
Regards,
Drak
--
Zikula Lead Developer
Board Member of the Zikula Foundation
Follow me on twitter.com/zikuladrak -
- Rank: Team Member
- Registered: Jul 15, 2004
- Last visit: May 27, 2010
- Posts: 277
Thank you for the answer.
I didn't know that. Or I just could not remember. -
- Rank: Registered User
- Registered: May 31, 2009
- Last visit: Apr 14, 2010
- Posts: 35
Thanks for the clarification on D1 and D2 but
How do I use Doctrine 2 in Zikula-1.3.0?
I looked at lib/vendor/Doctrine/Doctrine/Core.php and apparently the version is 1.2.3. Do I just replace the Doctrine directory with a copy of Doctrine 2? This doesn't sound right to me since all modules in system/ still have a table.php. -
- Rank: Team Member
- Registered: Jan 19, 2003
- Last visit: Apr 06, 2010
- Posts: 442
Doctrine 2 is included as well (within /plugins/Doctrine/).
System modules will be converted to D2 in a later version.
--
Guite | ModuleStudio
- Moderated by:
- Support
Users on-line
- 0 users
This list is based on users active over the last 60 minutes.
