Skip to content

Commit

Permalink
Fix linting on migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
rjmackay committed May 16, 2017
1 parent 769ee02 commit d8e2098
Show file tree
Hide file tree
Showing 20 changed files with 5 additions and 27 deletions.
1 change: 0 additions & 1 deletion migrations/20141007125013_created_updated_indexes.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,5 @@ public function change()
->addIndex(['created'])
->addIndex(['updated'])
->update();

}
}
1 change: 0 additions & 1 deletion migrations/20150323031520_rename_groups_to_stages.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ public function up()
'delete' => 'CASCADE',
])
->update();

}

public function down()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class AddPublishedToColumnToPosts extends AbstractMigration
/**
* Adding role-specific visibility functionality to posts
* By default, all published posts are public, but post owners
* or administrators can specify which roles are able to view
* or administrators can specify which roles are able to view
* a given post if desired. Admins still have access to all.
*/

Expand All @@ -20,6 +20,5 @@ public function change()
'null' => true
])
->update();

}
}
1 change: 0 additions & 1 deletion migrations/20150612014440_add_users_role_foreign_key.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ public function up()
])
->update()
;

}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,5 @@ public function up()
*/
public function down()
{

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ class AddNotificationsOauthScope extends AbstractMigration
public function up()
{
$this->execute("INSERT INTO oauth_scopes (scope, name) VALUES ('notifications', 'notifications')");

}

/**
Expand Down
1 change: 0 additions & 1 deletion migrations/20150904083146_add_contact_oauth_scope.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ class AddContactOauthScope extends AbstractMigration
public function up()
{
$this->execute("INSERT INTO oauth_scopes (scope, name) VALUES ('contacts', 'contacts')");

}

/**
Expand Down
1 change: 0 additions & 1 deletion migrations/20151208024527_add_user_to_messages.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ public function up()
'update' => 'CASCADE',
])
->update();

}

/**
Expand Down
1 change: 0 additions & 1 deletion migrations/20151208172416_add_csv_oauth_scope.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ class AddCsvOauthScope extends AbstractMigration
public function up()
{
$this->execute("INSERT INTO oauth_scopes (scope, name) VALUES ('csv', 'csv')");

}

/**
Expand Down
1 change: 0 additions & 1 deletion migrations/20160202115439_add_permissions.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,5 @@ public function change()
('Manage Settings', 'Manage general settings'),
('Bulk Data Import', 'Import data from external sources')
");

}
}
1 change: 0 additions & 1 deletion migrations/20160215174906_add_role_id.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ public function up()
->update();
$this->execute("ALTER TABLE roles DROP PRIMARY KEY;");
$this->execute("ALTER TABLE roles MODIFY id INT AUTO_INCREMENT PRIMARY KEY;");

}

/**
Expand Down
1 change: 0 additions & 1 deletion migrations/20160503083146_add_migrate_oauth_scope.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ class AddMigrateOauthScope extends AbstractMigration
public function up()
{
$this->execute("INSERT INTO oauth_scopes (scope, name) VALUES ('migrate', 'migrate')");

}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,5 @@ public function down()
WHERE " . $adapter->quoteColumnName('key') . " = 'message_location'
"
)->execute();

}
}
1 change: 0 additions & 1 deletion migrations/20160623184725_set_protected_roles.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,5 @@ public function up()
*/
public function down()
{

}
}
1 change: 0 additions & 1 deletion migrations/20161208162710_rename_visible_to_column.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,5 @@ public function down()
$this->table('sets')
->renameColumn('role', 'visible_to')
->update();

}
}
1 change: 0 additions & 1 deletion migrations/20170311003829_create_webhook_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ public function up()
'update' => 'CASCADE',
])
->create();

}

/**
Expand Down
1 change: 0 additions & 1 deletion migrations/20170313194004_add_webhook_to_oauth_scope.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ class AddWebhookToOauthScope extends AbstractMigration
public function up()
{
$this->execute("INSERT INTO oauth_scopes (scope, name) VALUES ('webhooks', 'webhooks')");

}

/**
Expand Down
9 changes: 2 additions & 7 deletions migrations/20170328080656_add_forms_tags_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ class AddFormsTagsTable extends AbstractMigration
* Uncomment this method if you would like to use it.
*/
public function change()
{ $this->table('forms_tags', [
{
$this->table('forms_tags', [
'id' => false,
'primary_key' => ['form_id', 'tag_id'],
])
Expand All @@ -28,25 +29,19 @@ public function change()
'update' => 'CASCADE'
])
->create();

}

/**
* Migrate Up.
*/
public function up()
{


}

/**
* Migrate Down.
*/
public function down()
{



}
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,5 @@ public function up()
public function down()
{
$this->execute("DELETE from form_attributes where input = 'tags'");

}
}
3 changes: 2 additions & 1 deletion migrations/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
<!-- Specs use PSR2 with an exclusion of method names -->
<rule ref="PSR2">
<exclude name="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
<exclude name="Generic.WhiteSpace.DisallowTabIndent"/>
</rule>
</ruleset>
</ruleset>

0 comments on commit d8e2098

Please sign in to comment.