-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcli.php
More file actions
34 lines (31 loc) · 1.38 KB
/
cli.php
File metadata and controls
34 lines (31 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
return array(
'db' => array(
'description' => 'The DB library is a low-level database abstraction layer for CyclonePHP',
'commands' => array(
'generate-schema' => array(
'description' => "Generates database schema.
Iterates on all classes named Record_*, instantiates each one and creates database schema for them.",
'arguments' => array(
'--namespace' => array(
'alias' => '-n',
'parameter' => '<namespace>',
'descr' => 'AbstractRecord implementations will be searched under the <namespace> namespace. You can also pass a comma-separated list of namespaces.',
'required' => false
),
'--forced' => array(
'alias' => '-f',
'parameter' => NULL,
'descr' => 'Tables will be dropped before creation'
),
'--suppress-execution' => array(
'alias' => '-s',
'parameter' => NULL,
'descr' => 'Prints the generated DDL to stdout and does not execute it'
)
),
'callback' => array('cyclone\\db\\schema\\Builder', 'build_schema')
)
)
)
);