| 1 | <?php |
||
| 11 | class Version20150509200923 extends AbstractMigration |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @param Schema $schema |
||
| 15 | */ |
||
| 16 | public function up(Schema $schema) |
||
| 17 | { |
||
| 18 | $this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on \'mysql\'.'); |
||
| 19 | |||
| 20 | $this->addSql('CREATE TABLE corpFacility (ID BIGINT UNSIGNED AUTO_INCREMENT NOT NULL, ownerID BIGINT UNSIGNED NOT NULL, facilityID BIGINT UNSIGNED NOT NULL, typeID BIGINT UNSIGNED NOT NULL, typeName VARCHAR(255) NOT NULL, solarSystemID BIGINT UNSIGNED NOT NULL, solarSystemName BIGINT UNSIGNED NOT NULL, regionID BIGINT UNSIGNED NOT NULL, regionName BIGINT UNSIGNED NOT NULL, starbaseModifier INT NOT NULL, tax INT NOT NULL, INDEX owner (ownerID), UNIQUE INDEX facility_owner (facilityId, ownerId), PRIMARY KEY(ID)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB;'); |
||
| 21 | $this->addSql("INSERT INTO api VALUES(29, 128, 'TariochEveapiFetcherEveWorker', 'corp', 'Facilities', 15);"); |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param Schema $schema |
||
| 26 | */ |
||
| 27 | public function down(Schema $schema) |
||
| 30 | } |
||
| 31 |