Skip to content

Commit

Permalink
Use named and explicitly ordered migration substeps
Browse files Browse the repository at this point in the history
Signed-off-by: Jon Stovell <[email protected]>
  • Loading branch information
Sesquipedalian committed Mar 26, 2024
1 parent 270962c commit 6a30532
Show file tree
Hide file tree
Showing 28 changed files with 66 additions and 149 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

use SMF\Db\DatabaseApi as Db;

class Migration1023 extends MigrationBase
class AlertsObsolete extends MigrationBase
{
/*******************
* Public properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
use SMF\Db\DatabaseApi as Db;
use SMF\Maintenance;

class Migration1022 extends MigrationBase
class AlertsWatchedBoards extends MigrationBase
{
/*******************
* Public properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
use SMF\Db\DatabaseApi as Db;
use SMF\Maintenance;

class Migration1021 extends MigrationBase
class AlertsWatchedTopics extends MigrationBase
{
/*******************
* Public properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

use SMF\Config;

class Migration1008 extends MigrationBase
class AttachmentDirectory extends MigrationBase
{
/*******************
* Public properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

use SMF\Db\DatabaseApi as Db;

class Migration1007 extends MigrationBase
class AttachmentSizes extends MigrationBase
{
/*******************
* Public properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
use SMF\Db\DatabaseApi as Db;
use SMF\Maintenance;

class Migration1020 extends MigrationBase
class AutoNotify extends MigrationBase
{
/*******************
* Public properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
use SMF\Maintenance;
use SMF\Utils;

class Migration1005 extends MigrationBase
class BoardDescriptions extends MigrationBase
{
/*******************
* Public properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

use SMF\Db\DatabaseApi as Db;

class Migration1018 extends MigrationBase
class CategoryDescrptions extends MigrationBase
{
/*******************
* Public properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
use SMF\Config;
use SMF\Db\DatabaseApi as Db;

class Migration1004 extends MigrationBase
class CollapsedCategories extends MigrationBase
{
/*******************
* Public properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
use SMF\Db\DatabaseApi as Db;
use SMF\Maintenance;

class Migration1019 extends MigrationBase
class CreateAlerts extends MigrationBase
{
/*******************
* Public properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
use SMF\Db\DatabaseApi as Db;
use SMF\Db\Schema\v3_0\BackgroundTasks;

class Migration1017 extends MigrationBase
class CreateBackgroundTasks extends MigrationBase
{
/*******************
* Public properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
use SMF\Db\DatabaseApi as Db;
use SMF\Db\Schema\v3_0\LogGroupRequests;

class Migration1009 extends MigrationBase
class CreateLogGroupRequests extends MigrationBase
{
/*******************
* Public properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
use SMF\Db\DatabaseApi as Db;
use SMF\Db\Schema\v3_0\MemberLogins;

class Migration1003 extends MigrationBase
class CreateMemberLogins extends MigrationBase
{
/*******************
* Public properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
use SMF\Db\DatabaseApi as Db;
use SMF\Maintenance;

class Migration1002 extends MigrationBase
class FixDates extends MigrationBase
{
/*******************
* Public properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
use SMF\Db\DatabaseApi as Db;
use SMF\Maintenance;

class Migration1006 extends MigrationBase
class LegacyAttachments extends MigrationBase
{
/*******************
* Public properties
Expand Down
62 changes: 0 additions & 62 deletions Sources/Maintenance/Migration/v2_1/Migration1015.php

This file was deleted.

62 changes: 0 additions & 62 deletions Sources/Maintenance/Migration/v2_1/Migration1016.php

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

use SMF\Db\DatabaseApi as Db;

class Migration1013 extends MigrationBase
class MovedTopics extends MigrationBase
{
/*******************
* Public properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

use SMF\Db\DatabaseApi as Db;

class Migration1014 extends MigrationBase
class NewScheduledTasks extends MigrationBase
{
/*******************
* Public properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
use SMF\Db\DatabaseApi as Db;
use SMF\Security;

class Migration1000 extends MigrationBase
class NewSettings extends MigrationBase
{
/*******************
* Public properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

use SMF\Db\DatabaseApi as Db;

class Migration1010 extends MigrationBase
class PackageManagerColumns extends MigrationBase
{
/*******************
* Public properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

use SMF\Config;

class Migration0202 extends MigrationBase
class PostgreSQLFindInSet extends MigrationBase
{
/*******************
* Public properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
use SMF\Config;
use SMF\Maintenance;

class Migration0201 extends MigrationBase
class PostgreSQLSequences extends MigrationBase
{
/*******************
* Public properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

use SMF\Db\DatabaseApi as Db;

class Migration1001 extends MigrationBase
class RemoveKarma extends MigrationBase
{
/*******************
* Public properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

namespace SMF\Maintenance\Migration\v2_1;

class Migration1012 extends MigrationBase
class SessionIDs extends MigrationBase
{
/*******************
* Public properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

use SMF\Db\DatabaseApi as Db;

class Migration1011 extends MigrationBase
class ValidationServers extends MigrationBase
{
/*******************
* Public properties
Expand Down
2 changes: 1 addition & 1 deletion Sources/Maintenance/Migration/v3_0/Migration0001.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
use SMF\Lang;
use SMF\Maintenance;

class Migration0001 extends MigrationBase
class LanguageDirectory extends MigrationBase
{
/*******************
* Public properties
Expand Down
Loading

0 comments on commit 6a30532

Please sign in to comment.