Platform: Windows
Command type: cqload subcommand
The cqload importschema subcommand imports an entire schema from a text file and adds it to your schema repository. This subcommand is useful for sharing schemas with sites that cannot access your schema repository or that use a different schema repository.
To use the cqload importschema subcommand, first you must export a schema by using the cqload exportschema subcommand. To import a partial schema, use the cqload importintegration subcommand.
If a schema contains packages that are not currently installed into the schema repository, an error occurs for each package that is not found. To use the cqload importschema or cqload importintegration subcommands, first you need to install the missing packages by right-clicking a schema repository and selecting install package.
cqload importschema -dbset 2013.01.00 admin secret "c:\schema.txt"
C:\cq_schema_rep\test>cqload importschema -dbset test admin secret exported_schema.txt *********************************************************
Starting importschema
*********************************************************
The import file "exported_schema.txt" is invalid:
The schema requires the following packages, which are not currently installed in the database...
revision '5.0' of package 'Notes'
revision '7.1' of package 'Email'.
*********************************************************
ERROR: importschema FAILED!
*********************************************************
C:\cq_schema_rep\test>cqload importschema -dbset test -installpackages -verbose admin secret exported_schema.txt *********************************************************
Starting importschema
*********************************************************
Installing package ‘Notes’, rev ‘5.0’.
Installing package ‘Email’, rev ‘7.1’.
Importing Schema RequestTracking
Importing Rev 1
Importing Rev 2
Importing Rev 3
Importing Rev 4
*********************************************************
Successfully completed importschema
*********************************************************