Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Demo Data
01-22-2020, 06:26 AM,
#1
Demo Data
I noticed today that the file sql/mysq/country_sql/demo.sql contains more or less the same info as the default.sql file. At one time it included demo data that people could use to play around with, but that seems to have gone.

I assume this was accidental and not deliberate?

Tim
Reply
01-22-2020, 11:54 AM,
#2
RE: Demo Data
There are a bunch of INSERTs towards the end of that file... what other things appear to be missing?
Reply
01-22-2020, 05:22 PM, (This post was last modified: 01-22-2020, 05:30 PM by TimSchofield.)
#3
RE: Demo Data
Customers, suppliers, stock items, stock categories, stock locations, all the other things that are needed to create those things such as sales areas, sales people etc.
Here is an example of what it used to look like:

https://raw.githubusercontent.com/timsch...l/demo.sql
Reply
01-23-2020, 12:28 PM, (This post was last modified: 01-23-2020, 12:29 PM by TurboPT.)
#4
RE: Demo Data
Ok, I'll diff that tomorrow night to compare.

I know that I've not removed anything, at least not intentionally.
I'll also have to check if the release handling may have done something unexpected. (I would think not, but...)
Reply
01-23-2020, 06:12 PM,
#5
RE: Demo Data
The way the release script works is that it takes the data that is in the weberpdemo database on the system where you are running the script and appends it to a dump of just the structure, so if you start with a weberpdemo database that contains just the default, that is the data that ends up in the demo.sql file.

Looking at it, I think you created a weberpdemo database based on sql/mysql/country_sql/default.sql before running the release script, and so that is what you ended up with in demo.sql. Perhaps we would be better moving to a system where the demo data wasn't automatically created, but was something we constructed to be most helpful to a user?

Tim
Reply
01-24-2020, 11:59 AM, (This post was last modified: 01-24-2020, 12:27 PM by TurboPT.)
#6
RE: Demo Data
Yes, I see what you mean in the diff. At first, it appeared to be mostly chartdetails, which is a huge section, but there are at least a dozen other areas as well.

To the part about "the demo data wasn't automatically created" ... do you mean like a separate sql file for that data, if desired? If so, this could be a better idea, perhaps.

I don't recall exactly what happened, but I do recall having the install issue with the FK thing (where all the tables were not being created) before the release, and I may have only had a 'skeleton' structure at the end. So that point is very plausible.
Reply
01-24-2020, 07:12 PM,
#7
RE: Demo Data
What I had in mind was to make a hand crafted sql file containing a selection of suppliers/customers/inventory items, with their associated date, designed to show off the various accounting features of webERP. This would then just need to be updated with any database changes each release, but that could easily be scripted.

Tim
Reply
01-28-2020, 08:58 PM,
#8
RE: Demo Data
In the absence of anything from any of the admins I have committed a demo.sql file based on the one I linked to earlier from a previous release. I have updated it for the database changes that have since happened.

Tim
Reply
04-21-2020, 09:19 PM,
#9
RE: Demo Data
I think I messed up with this. While trying to track down reported issues else where I realised that there were errors with the demo.sql file. I have committed revised demo.sql and default.sql files.

Would be great if someone could test what I have done.

Paul: I have created a pull request to your repository if you want to check what I have done and merge when you are happy.

Tim
Reply
04-21-2020, 11:24 PM,
#10
RE: Demo Data
Sure, I can test that later this week.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)