-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from Parabot/development
[MERGE] Development into master
- Loading branch information
Showing
7 changed files
with
129 additions
and
163 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
|
||
namespace BDN\Migrations; | ||
|
||
use Doctrine\DBAL\Migrations\AbstractMigration; | ||
use Doctrine\DBAL\Schema\Schema; | ||
|
||
/** | ||
* Auto-generated Migration: Please modify to your needs! | ||
*/ | ||
class Version20171109213351 extends AbstractMigration | ||
{ | ||
/** | ||
* @param Schema $schema | ||
*/ | ||
public function up(Schema $schema) | ||
{ | ||
// this up() migration is auto-generated, please modify it to your needs | ||
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); | ||
|
||
$this->addSql('ALTER TABLE server DROP FOREIGN KEY FK_5A6DD5F61844E6B7'); | ||
$this->addSql('CREATE TABLE type_soulplay_provider (id INT AUTO_INCREMENT NOT NULL, version VARCHAR(255) NOT NULL, release_date DATETIME NOT NULL, branch VARCHAR(255) NOT NULL, stable TINYINT(1) NOT NULL, build_id INT NOT NULL, active TINYINT(1) DEFAULT \'1\' NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB'); | ||
$this->addSql('DROP TABLE server_slack_channel'); | ||
$this->addSql('DROP INDEX UNIQ_5A6DD5F61844E6B7 ON server'); | ||
$this->addSql('ALTER TABLE server DROP server_id'); | ||
} | ||
|
||
/** | ||
* @param Schema $schema | ||
*/ | ||
public function down(Schema $schema) | ||
{ | ||
// this down() migration is auto-generated, please modify it to your needs | ||
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); | ||
|
||
$this->addSql('CREATE TABLE server_slack_channel (id INT AUTO_INCREMENT NOT NULL, channel VARCHAR(255) NOT NULL COLLATE utf8_unicode_ci, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB'); | ||
$this->addSql('DROP TABLE type_soulplay_provider'); | ||
$this->addSql('ALTER TABLE server ADD server_id INT DEFAULT NULL'); | ||
$this->addSql('ALTER TABLE server ADD CONSTRAINT FK_5A6DD5F61844E6B7 FOREIGN KEY (server_id) REFERENCES server_slack_channel (id)'); | ||
$this->addSql('CREATE UNIQUE INDEX UNIQ_5A6DD5F61844E6B7 ON server (server_id)'); | ||
} | ||
} |
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
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
75 changes: 0 additions & 75 deletions
75
src/Parabot/BDN/BotBundle/Entity/Servers/ServerSlackChannel.php
This file was deleted.
Oops, something went wrong.
29 changes: 29 additions & 0 deletions
29
src/Parabot/BDN/BotBundle/Entity/Types/Providers/SoulPlayProvider.php
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,29 @@ | ||
<?php | ||
/** | ||
* @author JKetelaar | ||
*/ | ||
|
||
namespace Parabot\BDN\BotBundle\Entity\Types\Providers; | ||
|
||
use Doctrine\ORM\Mapping as ORM; | ||
|
||
/** | ||
* Class SoulPlayProvider | ||
* @package Parabot\BDN\BotBundle\Entity\Types\Providers | ||
* | ||
* @ORM\Table(name="type_soulplay_provider") | ||
* @ORM\Entity(repositoryClass="Parabot\BDN\BotBundle\Repository\ProviderRepository") | ||
*/ | ||
class SoulPlayProvider extends Provider { | ||
public function getType() { | ||
return 'SoulPlay-Provider'; | ||
} | ||
|
||
public function getTravisRepository() { | ||
return 'Parabot/Parabot-317-API-Minified-SoulPlay'; | ||
} | ||
|
||
public function getName() { | ||
return 'SoulPlay-Provider'; | ||
} | ||
} |
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