-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
140 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
namespace Payutc\Migrations; | ||
|
||
use Doctrine\DBAL\Migrations\AbstractMigration, | ||
Doctrine\DBAL\Schema\Schema; | ||
|
||
class Version20130829233731 extends AbstractMigration | ||
{ | ||
public function up(Schema $schema) | ||
{ | ||
$this->addSql("ALTER TABLE `t_purchase_pur` | ||
ADD `pur_qte` INT UNSIGNED NOT NULL DEFAULT '1' COMMENT 'Nombre d''object acheté' AFTER `obj_id` , | ||
ADD `pur_unit_price` INT UNSIGNED NOT NULL COMMENT 'Prix unitaire de l''object acheté' AFTER `pur_qte`"); | ||
} | ||
|
||
public function down(Schema $schema) | ||
{ | ||
$this->addSql("ALTER TABLE `t_purchase_pur2` | ||
DROP `pur_qte`, | ||
DROP `pur_unit_price`;"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters