Lines Matching full:schema

49 /// The current schema version.
51 /// Any new database gets this schema version. Existing databases with an older
52 /// schema version must be first migrated to the current schema with
106 /// \param version_from Current schema version in the database.
107 /// \param version_to Schema version to migrate to.
127 throw store::error(F("Schema migration failed: %s") % e.what()); in migrate_schema_step()
135 /// Calculates the path to a schema migration file.
149 /// Calculates the path to the schema file for the database.
173 const fs::path schema = schema_file(); in initialize() local
175 std::ifstream input(schema.c_str()); in initialize()
177 throw error(F("Cannot open database schema '%s'") % schema); in initialize()
179 LI(F("Populating new database with schema from %s") % schema); in initialize()
188 "%s") % schema); in initialize()
200 /// Backs up a database for schema migration purposes.
207 /// \param old_version Version of the database's CURRENT schema, used to
246 /// the schema version we implement in this module; otherwise, a
249 /// \throw integrity_error If the schema in the database is too modern,
251 /// \throw old_schema_error If the schema in the database is older than our
265 F("Database at schema version %s, which is newer than the " in impl()
343 /// Migrates the schema of a database to the current version.
346 /// intermediate version between the schema version in the database to the
350 /// \param file The database whose schema to upgrade.
361 throw error(F("Database already at schema version %s; migration not " in migrate_schema()
364 throw error(F("Database at schema version %s, which is newer than the " in migrate_schema()
371 LI(F("Migrating schema from version %s to %s") % i % (i + 1)); in migrate_schema()