The integration adds two Artisan commands for managing your Surqlize schema. Both read the model list from config('surqlize.models').
Dumping the schema
surqlize:schema-dump prints the schema definitions for the configured models without executing them.
Pass --connection to indicate which connection the dump is intended for.
Applying the schema
surqlize:schema-apply runs the schema definitions against the database.
| Option | Description |
|---|---|
--dry-run | Print the schema DDL instead of executing it |
--dump | Alias of --dry-run |
--connection= | The SurrealDB connection to apply to |
Note
Learn more
Schema for defining tables and fields
Configuration for the model list
Surqlize CLI for the framework-agnostic commands