Skip to content

Commit b030fb4

Browse files
committed
chore(migration): add new migration for new PaymentGatewayProfile ApplicationType
1 parent 366a325 commit b030fb4

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?php namespace Database\Migrations\Model;
2+
/**
3+
* Copyright 2026 OpenStack Foundation
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
* http://www.apache.org/licenses/LICENSE-2.0
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
**/
14+
use Doctrine\DBAL\Schema\Schema;
15+
use Doctrine\Migrations\AbstractMigration;
16+
17+
/**
18+
* Auto-generated Migration: Please modify to your needs!
19+
*/
20+
final class Version20260224141828 extends AbstractMigration
21+
{
22+
public function getDescription(): string
23+
{
24+
return 'Add new Application type to payment profile';
25+
}
26+
27+
public function up(Schema $schema): void
28+
{
29+
$sql = <<<SQL
30+
ALTER TABLE `PaymentGatewayProfile` CHANGE `ApplicationType` `ApplicationType` ENUM('Registration','BookableRooms','SponsorServices') CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NULL DEFAULT 'Registration';
31+
SQL;
32+
33+
$this->addSql($sql);
34+
35+
}
36+
37+
public function down(Schema $schema): void
38+
{
39+
// this down() migration is auto-generated, please modify it to your needs
40+
41+
}
42+
}

0 commit comments

Comments
 (0)