Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

How to backup custom code?

Questions related to customising nuBuilder Forte with JavaScript or PHP.
Post Reply
deckoff
Posts: 17
Joined: Tue Jul 10, 2018 12:34 pm
Been thanked: 1 time

How to backup custom code?

Unread post by deckoff »

Hello,I was wondering what is the best practice of backing up custom code, attached to forms?
So far, the only method I found is exporting the database - not very git-able,and a bit clumsy. Is there any other way?
Regards
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: How to backup custom code?

Unread post by admin »

deckoff,

Backing up the whole database is the way to do it.

Steven
kev1n
nuBuilder Team
Posts: 4297
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: How to backup custom code?

Unread post by kev1n »

The best and easiest way to track all changes is set up triggers in the database that write to audit tables. Whenever a field (in our case a field that contains conde) gets updated,
it creates an entry in the history table so you can track all changes to the code over time.
Using the information in a history table, it is possible to retrieve a field's content at any point in time.
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: How to backup custom code?

Unread post by admin »

.
Post Reply