Code Monkey home page Code Monkey logo

Comments (6)

goFrendiAsgard avatar goFrendiAsgard commented on July 29, 2024

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.

from no-cms.

alwin4711 avatar alwin4711 commented on July 29, 2024

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 ????

from no-cms.

goFrendiAsgard avatar goFrendiAsgard commented on July 29, 2024

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

from no-cms.

alwin4711 avatar alwin4711 commented on July 29, 2024

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

from no-cms.

goFrendiAsgard avatar goFrendiAsgard commented on July 29, 2024

It will still use the old database

from no-cms.

goFrendiAsgard avatar goFrendiAsgard commented on July 29, 2024

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

from no-cms.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.