src/Phinx/Db/Adapter/OracleAdapter.php 1 location
|
@@ 825-833 (lines=9) @@
|
| 822 |
|
* {@inheritdoc} |
| 823 |
|
*/ |
| 824 |
|
// TODO |
| 825 |
|
public function createDatabase($name, $options = []) |
| 826 |
|
{ |
| 827 |
|
if (isset($options['collation'])) { |
| 828 |
|
$this->execute(sprintf('CREATE DATABASE [%s] COLLATE [%s]', $name, $options['collation'])); |
| 829 |
|
} else { |
| 830 |
|
$this->execute(sprintf('CREATE DATABASE [%s]', $name)); |
| 831 |
|
} |
| 832 |
|
$this->execute(sprintf('USE [%s]', $name)); |
| 833 |
|
} |
| 834 |
|
|
| 835 |
|
/** |
| 836 |
|
* {@inheritdoc} |
src/Phinx/Db/Adapter/SqlServerAdapter.php 1 location
|
@@ 949-957 (lines=9) @@
|
| 946 |
|
/** |
| 947 |
|
* {@inheritdoc} |
| 948 |
|
*/ |
| 949 |
|
public function createDatabase($name, $options = []) |
| 950 |
|
{ |
| 951 |
|
if (isset($options['collation'])) { |
| 952 |
|
$this->execute(sprintf('CREATE DATABASE [%s] COLLATE [%s]', $name, $options['collation'])); |
| 953 |
|
} else { |
| 954 |
|
$this->execute(sprintf('CREATE DATABASE [%s]', $name)); |
| 955 |
|
} |
| 956 |
|
$this->execute(sprintf('USE [%s]', $name)); |
| 957 |
|
} |
| 958 |
|
|
| 959 |
|
/** |
| 960 |
|
* {@inheritdoc} |