summaryrefslogtreecommitdiff
path: root/cidb/schema.dump.readme
blob: d650300123ff2d9b13bad1abaa20366b9966917d (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 this inside the chroot:
  $ lib/cidb_integration_test CIDBMigrationsTest.testMigrations --no-wipe

Then, follow the instructions in the developer.readme to re-launch the mysqld
daemon from the temporary directory and dump the schema using (again, inside the
chroot):

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

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