Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ready-to-use data set #14

Open
CatalinFrancu opened this issue Apr 30, 2016 · 0 comments
Open

Ready-to-use data set #14

CatalinFrancu opened this issue Apr 30, 2016 · 0 comments

Comments

@CatalinFrancu
Copy link
Member

Right now we start off with a mostly empty data set. It takes time for a developer to set up a meaningful database with users, roles, problems, rounds, submitted sources and everything.

It would be nice to have a way to set up a ready-to-use data set. Then we could just run a script or import some SQL statements and have some meaningful data covering many cases: upcoming / ongoing / finished rounds, sources submitted for problems before / during / after a round, evaluation reports and so on.

One simple idea is to have one SQL file. The reset procedure would then be

  • drop the database
  • create the database
  • run the SQL file
  • run migration.php in case the SQL file uses a slightly older schema

This won't work for attachments - attachments have both a DB record and a file under uploads. Hopefully we can automate this part too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant