|
@@ -0,0 +1,33 @@
|
|
|
+<?php
|
|
|
+
|
|
|
+namespace Application\Migrations;
|
|
|
+
|
|
|
+use Doctrine\DBAL\Migrations\AbstractMigration;
|
|
|
+use Doctrine\DBAL\Schema\Schema;
|
|
|
+
|
|
|
+/**
|
|
|
+ * Auto-generated Migration: Please modify to your needs!
|
|
|
+ */
|
|
|
+class Version20171019134932 extends AbstractMigration
|
|
|
+{
|
|
|
+ /**
|
|
|
+ * @param Schema $schema
|
|
|
+ */
|
|
|
+ public function up(Schema $schema)
|
|
|
+ {
|
|
|
+ // this up() migration is auto-generated, please modify it to your needs
|
|
|
+ $base = 1;
|
|
|
+ $initial = 2;
|
|
|
+
|
|
|
+ $this->addsql("UPDATE onu SET tenancy_id = " . $initial . " WHERE isnull(tenancy_id) or tenancy_id = " . $base);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @param Schema $schema
|
|
|
+ */
|
|
|
+ public function down(Schema $schema)
|
|
|
+ {
|
|
|
+ // this down() migration is auto-generated, please modify it to your needs
|
|
|
+
|
|
|
+ }
|
|
|
+}
|