On Do, Apr 29, 2004 at 02:57:45 +0200, Franky wrote:
> have you had any chance of re-adding the code to be able to add "sample
> data" to te daabase again?
I know I promised, but I haven't added this yet. At least I know why
it has been removed from setup! :)
As we don't select what to install during setup any longer, it makes
no sense there.
So this should be added to the module manager. To be able to provide
sample data for core/base modules, which get installed during setup
a) be added to setup anyway
b) be added to install.sql, update_*.php or even definition2.xml
None of those make me happy. So what about this:
- Every module can have sample.sql files (and localized variants)
- If file has sample data, there is a install link in the module
This allows an admin to install sample data at will, for all modules,
This adds one caveat: sequences. If sample data is installed, but
sequences start at 1, duplicates *will* happen. One way around this
would be to start sequences for user data at, say, 100. Everything
below is sample data *only* (and could thus be removed againe easily).
Or we dump sequences, and use AUTO in the definition2.xml. Before we
do this, we must check where this works (I know it does on MySQL and
PostgreSQL, but on other DBs?). Removing sample data wouldn't be that
easy then, though.
Karsten Dambekalns k.dambekalns@...