| @@ 103-109 (lines=7) @@ | ||
| 100 | * |
|
| 101 | * @return void |
|
| 102 | */ |
|
| 103 | public function createSchema($name) |
|
| 104 | { |
|
| 105 | $schema = new Schema($name); |
|
| 106 | $this->actions[] = function () use ($schema) { |
|
| 107 | return $this->manipulation->create($schema); |
|
| 108 | }; |
|
| 109 | } |
|
| 110 | ||
| 111 | /** |
|
| 112 | * Drop schema. |
|
| @@ 118-124 (lines=7) @@ | ||
| 115 | * |
|
| 116 | * @return void |
|
| 117 | */ |
|
| 118 | public function dropSchema($name) |
|
| 119 | { |
|
| 120 | $schema = new Schema($name); |
|
| 121 | $this->actions[] = function () use ($schema) { |
|
| 122 | return $this->manipulation->drop($schema); |
|
| 123 | }; |
|
| 124 | } |
|
| 125 | ||
| 126 | /** |
|
| 127 | * Execute SQL. |
|