Skip to content

Commit

Permalink
db 600069 extend generator column
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlan-00 committed Apr 10, 2024
1 parent 9eb3c29 commit a818a61
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
38 changes: 38 additions & 0 deletions src/Module/System/Update/Migration/V6/Migration600069.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?php

declare(strict_types=1);

/**
* vim:set softtabstop=4 shiftwidth=4 expandtab:
*
* LICENSE: GNU Affero General Public License, version 3 (AGPL-3.0-or-later)
* Copyright Ampache.org, 2001-2023
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

namespace Ampache\Module\System\Update\Migration\V6;

use Ampache\Module\System\Dba;
use Ampache\Module\System\Update\Migration\AbstractMigration;

final class Migration600069 extends AbstractMigration
{
protected array $changelog = ['Extend `generator column` on `podcast` table to 128 characters'];

public function migrate(): void
{
$this->updateDatabase("ALTER TABLE `podcast` MODIFY COLUMN `generator` varchar(128);");
}
}
1 change: 1 addition & 0 deletions src/Module/System/Update/Versions.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ final class Versions
600066 => Migration\V6\Migration600066::class,
600067 => Migration\V6\Migration600067::class,
600068 => Migration\V6\Migration600068::class,
600069 => Migration\V6\Migration600069::class,
];

/**
Expand Down

0 comments on commit a818a61

Please sign in to comment.