Changing name
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
require('vendor/autoload.php');
|
require('vendor/autoload.php');
|
||||||
|
|
||||||
use BBDDL\Wrapper as Wrapper;
|
use Schema\Wrapper as Wrapper;
|
||||||
|
|
||||||
$pdo = new \PDO('sqlite:database.sqlite3');
|
$pdo = new \PDO('sqlite:database.sqlite3');
|
||||||
|
|
||||||
|
|||||||
+4
-4
@@ -1,17 +1,17 @@
|
|||||||
{
|
{
|
||||||
"name": "ahwelp/bbddl",
|
"name": "urfat/schema",
|
||||||
"description": "From Phinx, just the DDL",
|
"description": "From Phinx, just the DDL",
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
"name": "ahwelp",
|
"name": "Artur Welp",
|
||||||
"email": "ahwelp@ahwelp.com"
|
"email": "ahwelp@universo.univates.br"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"require": {},
|
"require": {},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
"BBDDL\\": "src/BBDDL"
|
"Schema\\": "src/Schema"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,9 +26,9 @@
|
|||||||
* @package Phinx
|
* @package Phinx
|
||||||
* @subpackage Phinx\Migration
|
* @subpackage Phinx\Migration
|
||||||
*/
|
*/
|
||||||
namespace BBDDL\Db\Adapter;
|
namespace Schema\Db\Adapter;
|
||||||
|
|
||||||
use BBDDL\Db\Adapter\AdapterInterface;
|
use Schema\Db\Adapter\AdapterInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adapter factory and registry.
|
* Adapter factory and registry.
|
||||||
+6
-6
@@ -26,13 +26,13 @@
|
|||||||
* @package Phinx
|
* @package Phinx
|
||||||
* @subpackage Phinx\Db\Adapter
|
* @subpackage Phinx\Db\Adapter
|
||||||
*/
|
*/
|
||||||
namespace BBDDL\Db\Adapter;
|
namespace Schema\Db\Adapter;
|
||||||
|
|
||||||
use BBDDL\Db\Table;
|
use Schema\Db\Table;
|
||||||
use BBDDL\Db\Table\Column;
|
use Schema\Db\Table\Column;
|
||||||
use BBDDL\Db\Table\Index;
|
use Schema\Db\Table\Index;
|
||||||
use BBDDL\Db\Table\ForeignKey;
|
use Schema\Db\Table\ForeignKey;
|
||||||
//use BBDDL\Migration\MigrationInterface;
|
//use Schema\Migration\MigrationInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adapter Interface.
|
* Adapter Interface.
|
||||||
@@ -26,13 +26,13 @@
|
|||||||
* @package Phinx
|
* @package Phinx
|
||||||
* @subpackage Phinx\Db\Adapter
|
* @subpackage Phinx\Db\Adapter
|
||||||
*/
|
*/
|
||||||
namespace BBDDL\Db\Adapter;
|
namespace Schema\Db\Adapter;
|
||||||
|
|
||||||
use BBDDL\Db\Table;
|
use Schema\Db\Table;
|
||||||
use BBDDL\Db\Table\Column;
|
use Schema\Db\Table\Column;
|
||||||
use BBDDL\Db\Table\Index;
|
use Schema\Db\Table\Index;
|
||||||
use BBDDL\Db\Table\ForeignKey;
|
use Schema\Db\Table\ForeignKey;
|
||||||
use BBDDL\Migration\MigrationInterface;
|
use Schema\Migration\MigrationInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adapter Wrapper.
|
* Adapter Wrapper.
|
||||||
@@ -26,12 +26,12 @@
|
|||||||
* @package Phinx
|
* @package Phinx
|
||||||
* @subpackage Phinx\Db\Adapter
|
* @subpackage Phinx\Db\Adapter
|
||||||
*/
|
*/
|
||||||
namespace BBDDL\Db\Adapter;
|
namespace Schema\Db\Adapter;
|
||||||
|
|
||||||
use BBDDL\Db\Table;
|
use Schema\Db\Table;
|
||||||
use BBDDL\Db\Table\Column;
|
use Schema\Db\Table\Column;
|
||||||
use BBDDL\Db\Table\Index;
|
use Schema\Db\Table\Index;
|
||||||
use BBDDL\Db\Table\ForeignKey;
|
use Schema\Db\Table\ForeignKey;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Phinx MySQL Adapter.
|
* Phinx MySQL Adapter.
|
||||||
@@ -26,10 +26,10 @@
|
|||||||
* @package Phinx
|
* @package Phinx
|
||||||
* @subpackage Phinx\Db\Adapter
|
* @subpackage Phinx\Db\Adapter
|
||||||
*/
|
*/
|
||||||
namespace BBDDL\Db\Adapter;
|
namespace Schema\Db\Adapter;
|
||||||
|
|
||||||
use BBDDL\Db\Table;
|
use Schema\Db\Table;
|
||||||
use BBDDL\Db\Table\Column;
|
use Schema\Db\Table\Column;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Phinx PDO Adapter.
|
* Phinx PDO Adapter.
|
||||||
+5
-5
@@ -26,12 +26,12 @@
|
|||||||
* @package Phinx
|
* @package Phinx
|
||||||
* @subpackage Phinx\Db\Adapter
|
* @subpackage Phinx\Db\Adapter
|
||||||
*/
|
*/
|
||||||
namespace BBDDL\Db\Adapter;
|
namespace Schema\Db\Adapter;
|
||||||
|
|
||||||
use BBDDL\Db\Table;
|
use Schema\Db\Table;
|
||||||
use BBDDL\Db\Table\Column;
|
use Schema\Db\Table\Column;
|
||||||
use BBDDL\Db\Table\Index;
|
use Schema\Db\Table\Index;
|
||||||
use BBDDL\Db\Table\ForeignKey;
|
use Schema\Db\Table\ForeignKey;
|
||||||
|
|
||||||
class PostgresAdapter extends PdoAdapter implements AdapterInterface
|
class PostgresAdapter extends PdoAdapter implements AdapterInterface
|
||||||
{
|
{
|
||||||
@@ -26,13 +26,13 @@
|
|||||||
* @package Phinx
|
* @package Phinx
|
||||||
* @subpackage Phinx\Db\Adapter
|
* @subpackage Phinx\Db\Adapter
|
||||||
*/
|
*/
|
||||||
namespace BBDDL\Db\Adapter;
|
namespace Schema\Db\Adapter;
|
||||||
|
|
||||||
use BBDDL\Db\Table;
|
use Schema\Db\Table;
|
||||||
use BBDDL\Db\Table\Column;
|
use Schema\Db\Table\Column;
|
||||||
use BBDDL\Db\Table\Index;
|
use Schema\Db\Table\Index;
|
||||||
use BBDDL\Db\Table\ForeignKey;
|
use Schema\Db\Table\ForeignKey;
|
||||||
//use BBDDL\Migration\IrreversibleMigrationException;
|
//use Schema\Migration\IrreversibleMigrationException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Phinx Proxy Adapter.
|
* Phinx Proxy Adapter.
|
||||||
@@ -26,12 +26,12 @@
|
|||||||
* @package Phinx
|
* @package Phinx
|
||||||
* @subpackage Phinx\Db\Adapter
|
* @subpackage Phinx\Db\Adapter
|
||||||
*/
|
*/
|
||||||
namespace BBDDL\Db\Adapter;
|
namespace Schema\Db\Adapter;
|
||||||
|
|
||||||
use BBDDL\Db\Table;
|
use Schema\Db\Table;
|
||||||
use BBDDL\Db\Table\Column;
|
use Schema\Db\Table\Column;
|
||||||
use BBDDL\Db\Table\Index;
|
use Schema\Db\Table\Index;
|
||||||
use BBDDL\Db\Table\ForeignKey;
|
use Schema\Db\Table\ForeignKey;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Phinx SQLite Adapter.
|
* Phinx SQLite Adapter.
|
||||||
+5
-5
@@ -26,12 +26,12 @@
|
|||||||
* @package Phinx
|
* @package Phinx
|
||||||
* @subpackage Phinx\Db\Adapter
|
* @subpackage Phinx\Db\Adapter
|
||||||
*/
|
*/
|
||||||
namespace BBDDL\Db\Adapter;
|
namespace Schema\Db\Adapter;
|
||||||
|
|
||||||
use BBDDL\Db\Table;
|
use Schema\Db\Table;
|
||||||
use BBDDL\Db\Table\Column;
|
use Schema\Db\Table\Column;
|
||||||
use BBDDL\Db\Table\Index;
|
use Schema\Db\Table\Index;
|
||||||
use BBDDL\Db\Table\ForeignKey;
|
use Schema\Db\Table\ForeignKey;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Phinx SqlServer Adapter.
|
* Phinx SqlServer Adapter.
|
||||||
+5
-5
@@ -26,12 +26,12 @@
|
|||||||
* @package Phinx
|
* @package Phinx
|
||||||
* @subpackage Phinx\Db\Adapter
|
* @subpackage Phinx\Db\Adapter
|
||||||
*/
|
*/
|
||||||
namespace BBDDL\Db\Adapter;
|
namespace Schema\Db\Adapter;
|
||||||
|
|
||||||
use BBDDL\Db\Table;
|
use Schema\Db\Table;
|
||||||
use BBDDL\Db\Table\Column;
|
use Schema\Db\Table\Column;
|
||||||
use BBDDL\Db\Table\Index;
|
use Schema\Db\Table\Index;
|
||||||
use BBDDL\Db\Table\ForeignKey;
|
use Schema\Db\Table\ForeignKey;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Table prefix/suffix adapter.
|
* Table prefix/suffix adapter.
|
||||||
+1
-1
@@ -26,7 +26,7 @@
|
|||||||
* @package Phinx
|
* @package Phinx
|
||||||
* @subpackage Phinx\Db\Adapter
|
* @subpackage Phinx\Db\Adapter
|
||||||
*/
|
*/
|
||||||
namespace BBDDL\Db\Adapter;
|
namespace Schema\Db\Adapter;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Wrapper Interface.
|
* Wrapper Interface.
|
||||||
@@ -26,12 +26,12 @@
|
|||||||
* @package Phinx
|
* @package Phinx
|
||||||
* @subpackage Phinx\Db
|
* @subpackage Phinx\Db
|
||||||
*/
|
*/
|
||||||
namespace BBDDL\Db;
|
namespace Schema\Db;
|
||||||
|
|
||||||
use BBDDL\Db\Table\Column;
|
use Schema\Db\Table\Column;
|
||||||
use BBDDL\Db\Table\Index;
|
use Schema\Db\Table\Index;
|
||||||
use BBDDL\Db\Table\ForeignKey;
|
use Schema\Db\Table\ForeignKey;
|
||||||
use BBDDL\Db\Adapter\AdapterInterface;
|
use Schema\Db\Adapter\AdapterInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
* @package Phinx
|
* @package Phinx
|
||||||
* @subpackage Phinx\Db
|
* @subpackage Phinx\Db
|
||||||
*/
|
*/
|
||||||
namespace BBDDL\Db\Table;
|
namespace Schema\Db\Table;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
@@ -27,9 +27,9 @@
|
|||||||
* @subpackage Phinx\Db
|
* @subpackage Phinx\Db
|
||||||
* @author Leonid Kuzmin <lndkuzmin@gmail.com>
|
* @author Leonid Kuzmin <lndkuzmin@gmail.com>
|
||||||
*/
|
*/
|
||||||
namespace BBDDL\Db\Table;
|
namespace Schema\Db\Table;
|
||||||
|
|
||||||
use BBDDL\Db\Table;
|
use Schema\Db\Table;
|
||||||
|
|
||||||
class ForeignKey
|
class ForeignKey
|
||||||
{
|
{
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
* @package Phinx
|
* @package Phinx
|
||||||
* @subpackage Phinx\Db
|
* @subpackage Phinx\Db
|
||||||
*/
|
*/
|
||||||
namespace BBDDL\Db\Table;
|
namespace Schema\Db\Table;
|
||||||
|
|
||||||
class Index
|
class Index
|
||||||
{
|
{
|
||||||
@@ -1,13 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace BBDDL;
|
namespace Schema;
|
||||||
|
|
||||||
use BBDDL\Db\Table as Table;
|
use Schema\Db\Table as Table;
|
||||||
|
|
||||||
use BBDDL\Db\Adapter\PostgresAdapter;
|
use Schema\Db\Adapter\PostgresAdapter;
|
||||||
use BBDDL\Db\Adapter\MysqlAdapter;
|
use Schema\Db\Adapter\MysqlAdapter;
|
||||||
use BBDDL\Db\Adapter\SQLiteAdapter;
|
use Schema\Db\Adapter\SQLiteAdapter;
|
||||||
use BBDDL\Db\Adapter\SqlServerAdapter;
|
use Schema\Db\Adapter\SqlServerAdapter;
|
||||||
|
|
||||||
class Wrapper{
|
class Wrapper{
|
||||||
|
|
||||||
Reference in New Issue
Block a user