CC-2806: Create upgrade template file
-missing function -comment out redundant code -Create cc_component table on upgrade
This commit is contained in:
parent
d93a9edcd2
commit
3c6692ebce
4 changed files with 29 additions and 5 deletions
23
install_minimal/DoctrineMigrations/Version20110929184401.php
Normal file
23
install_minimal/DoctrineMigrations/Version20110929184401.php
Normal file
|
@ -0,0 +1,23 @@
|
|||
<?php
|
||||
|
||||
namespace DoctrineMigrations;
|
||||
|
||||
use Doctrine\DBAL\Migrations\AbstractMigration,
|
||||
Doctrine\DBAL\Schema\Schema;
|
||||
|
||||
class Version20110929184401 extends AbstractMigration
|
||||
{
|
||||
public function up(Schema $schema)
|
||||
{
|
||||
$cc_component = $schema->createTable('cc_component');
|
||||
$cc_component->addColumn('name', 'string', array('length' => 32));
|
||||
$cc_component->addColumn('ip', 'string', array('length' => 18));
|
||||
|
||||
$cc_component->setPrimaryKey(array('name'));
|
||||
}
|
||||
|
||||
public function down(Schema $schema)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue