1 | <?php |
||
11 | class Version20150501203943 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 corpBlueprint (ID BIGINT UNSIGNED AUTO_INCREMENT NOT NULL, ownerID BIGINT UNSIGNED NOT NULL, itemID BIGINT UNSIGNED NOT NULL, locationID BIGINT UNSIGNED NOT NULL, typeID BIGINT UNSIGNED NOT NULL, typeName VARCHAR(255) NOT NULL, quantity BIGINT NOT NULL, flag INT NOT NULL, timeEfficiency INT UNSIGNED NOT NULL, materialEfficiency INT UNSIGNED NOT NULL, runs INT NOT NULL, INDEX owner (ownerID), UNIQUE INDEX entry_owner (itemId, ownerId), PRIMARY KEY(ID)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB;'); |
||
21 | $this->addSql('INSERT INTO api VALUES(27, 2, "TariochEveapiFetcherEveWorker", "corp", "Blueprints", 1440);'); |
||
22 | } |
||
23 | |||
24 | /** |
||
25 | * @param Schema $schema |
||
26 | */ |
||
27 | public function down(Schema $schema) |
||
30 | } |
||
31 |