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

Modul Generator configuration #34

Closed
alwin4711 opened this issue Nov 16, 2012 · 6 comments
Closed

Modul Generator configuration #34

alwin4711 opened this issue Nov 16, 2012 · 6 comments
Assignees

Comments

@alwin4711
Copy link
Contributor

HI,
is there any way to configure how the modulgenerator will works ?
I don't need the database install / uninstall stuff.
I will hande all these with mysql workbench
Themodul generator make some mistakes by the way he genarated Foreign Keys.
So i need something like "disable" drop and Create on sqlfiles.

AND different database.

Best regards
Alwin

@goFrendiAsgard
Copy link
Owner

For now you can't do that yet :(
When I make module-generator at the first time, I make a lot of assumption. Creating tables is one of them.

But I have work-around for your problem. First, open your module/module_name/controllers/ directory.
Edit install.php, especially at the last lines of function remove_all and build_all.
Something like:

$this->import_sql(BASEPATH.'../modules/'.$module_path.
'/assets/db/install.sql');

I will make another module generator which is code-named as nordrassil. It will need a few weeks to be ready.

@alwin4711
Copy link
Contributor Author

Thank you, this will work.
But later it must be switchable.
If i want to update a modul i cannot drop and create the database because all user input data will be lost.

BTW: how to update no-cms ?
I always start with a new directory and e fresh database ????

@goFrendiAsgard
Copy link
Owner

To update No-CMS will be a bit tricky:

  1. Download the newest version
  2. Delete /application/config directory from the downloaded one
  3. Delete /assets/grocery_crud/js/jquery_plugins/config/jquery.ckeditor.config.js from the downloaded one
  4. Override the old directory with the downloaded one

@alwin4711
Copy link
Contributor Author

Thhnak you, but what happens to the database ???

@goFrendiAsgard
Copy link
Owner

It will still use the old database

@ghost ghost assigned goFrendiAsgard Nov 20, 2012
@goFrendiAsgard
Copy link
Owner

Hi @alwin4711, I've just replace the old module-generator with Nordrassil.
It has a lot of features, including master-detail form generator and also some option to import/not importing table on installation.
Hope you'll enjoy it
https://github.com/goFrendiAsgard/No-CMS/tree/668f2aaab3c622b2b7c6df769177c6356441117e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants