Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- use Phinx\Migration\AbstractMigration;
- class TableComments extends AbstractMigration
- {
- public function up()
- {
- $table = $this->table('ore_nf_comments');
- $table->changeColumn(
- 'rating',
- 'integer',
- [
- 'signed' => false,
- 'default' => '0',
- 'null' => false,
- 'limit' => MysqlAdapter::INT_TINY
- ]
- );
- $table->save();
- }
- public function down()
- {
- $table = $this->table('ore_nf_comments');
- $table->changeColumn(
- 'rating',
- 'integer',
- [
- 'signed' => true,
- 'default' => '0',
- 'null' => false,
- 'limit' => MysqlAdapter::INT_TINY
- ]
- );
- $table->save();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement