Moves Cricsheet tables from the default main schema to the cricsheet
schema, and Cricinfo tables from main to the cricinfo schema.
This is a one-time migration for existing databases.
Usage
migrate_to_schemas(path = NULL, verbose = TRUE)
Arguments
- path
Character. Database file path. If NULL, uses default.
- verbose
Logical. Print progress messages. Default TRUE.
Value
Invisibly returns TRUE on success.
Details
Uses CREATE TABLE AS SELECT + DROP since DuckDB doesn't support
ALTER TABLE SET SCHEMA.
Examples
if (FALSE) { # \dontrun{
migrate_to_schemas()
} # }