New project - using old tables

Got something cool to share with AppGini users? Feel free to post it here!
Post Reply
User avatar
RonP
Veteran Member
Posts: 222
Joined: 2013-08-27 13:36
Location: Heiloo, The Netherlands
Contact:

New project - using old tables

Post by RonP » 2023-06-25 14:50

Hi,
I have to change the database name (provider restrictions :evil: ) in my project.
Starting a new project gives no opportunity to use already define tables from the older project.
Or.... what do I miss?

I thought: Copy all the files to a new directory = database name, change the config.php and Yep that does the trick ..... nothing of that.
Ron

User avatar
RonP
Veteran Member
Posts: 222
Joined: 2013-08-27 13:36
Location: Heiloo, The Netherlands
Contact:

Re: New project - using old tables

Post by RonP » 2023-06-25 15:03

FOUND IT :( :D

Scrolling to some documentation a came to:
Import your existing MySQL/MariaDB database schema to AppGini --> https://bigprof.com/appgini/m2a
Followed the mentioned steps and .... YEP I'm a Happy Camper.

AppGini, your documentation is perfect, thank you
Ron

User avatar
RonP
Veteran Member
Posts: 222
Joined: 2013-08-27 13:36
Location: Heiloo, The Netherlands
Contact:

Re: New project - using old tables

Post by RonP » 2023-06-25 15:21

At second thougts .....
It seems that after using m2a.php procedure the generated .AXP file has indeed the wanted tables imported however, all the field definitions has to be set again.

So, coming back to my first post: How can I "import" old defined tables to a new project ?
Ron

User avatar
RonP
Veteran Member
Posts: 222
Joined: 2013-08-27 13:36
Location: Heiloo, The Netherlands
Contact:

Re: New project - using old tables

Post by RonP » 2023-06-26 16:59

Well,
It is so simple and so stupid of me.
Change database-name in config.php
Change Database-name in the .AXP application.
I think I was somewhere else in mind the other day.
Ron

User avatar
jmcgov
Veteran Member
Posts: 85
Joined: 2018-12-19 01:31
Location: Northern Ireland

Re: New project - using old tables

Post by jmcgov » 2024-03-17 07:25

We all have those days 😁

Post Reply