Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- use Phinx\Migration\AbstractMigration;
- class TableApartmentDocument extends AbstractMigration
- {
- public function up()
- {
- $table = $this->table('ore_nf_apartment_document');
- $table->addIndex(
- [
- 'type'
- ],
- [
- 'name' => 'type'
- ]
- );
- $table->save();
- }
- public function down()
- {
- $table = $this->table('ore_nf_apartment_document');
- $table->removeIndexByName('type');
- $table->save();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement