2019-06-03 06:03:28 -06:00
|
|
|
Building full schema dumps
|
|
|
|
==========================
|
|
|
|
|
2019-06-05 12:20:35 -06:00
|
|
|
These schemas need to be made from a database that has had all background updates run.
|
|
|
|
|
2019-06-03 06:03:28 -06:00
|
|
|
Postgres
|
|
|
|
--------
|
|
|
|
|
2019-06-03 06:23:40 -06:00
|
|
|
$ pg_dump --format=plain --schema-only --no-tablespaces --no-acl --no-owner $DATABASE_NAME| sed -e '/^--/d' -e 's/public\.//g' -e '/^SET /d' -e '/^SELECT /d' > full.sql.postgres
|
2019-06-03 06:03:28 -06:00
|
|
|
|
|
|
|
SQLite
|
|
|
|
------
|
|
|
|
|
|
|
|
$ sqlite3 $DATABASE_FILE ".schema" > full.sql.sqlite
|
|
|
|
|
2019-06-05 12:20:35 -06:00
|
|
|
After
|
|
|
|
-----
|
|
|
|
|
2019-06-03 06:23:40 -06:00
|
|
|
Delete the CREATE statements for "sqlite_stat1", "schema_version", "applied_schema_deltas", and "applied_module_schemas".
|