summaryrefslogtreecommitdiff
path: root/cidb/schema.dump.readme
blob: d8e2aef0e3b7fc23530e2a38ce53b149b8e6ef0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
These instructions assume you have a full chromiumos checkout at
~/chromiumos/

To generate a schema dump, run
  $ lib/cidb_integration_test.py CIDBMigrationsTest.testMigrations --no-wipe
to bring the test database instance to the latest schema (as reflected in your
source tree).
Then, follow the instructions in the developer.readme to re-launch the mysqld
daemon from the temporary directory and dump the schema using:

$ mysqldump -u root -S ${tmpdir}/mysqld_dir/mysqld.socket --no-data \
    --single-transaction cidb | grep -v '^--' \
    > ~/chromiumos/chromite/cidb/schema.dump

Remember to cleanup the temporary directory when you're done.