Skip to content

Commit

Permalink
Removes $initial_columns property in SMF\Db\Schema\Table
Browse files Browse the repository at this point in the history
Signed-off-by: Jon Stovell <[email protected]>
  • Loading branch information
Sesquipedalian committed Mar 2, 2024
1 parent a84a4e5 commit fd97a09
Show file tree
Hide file tree
Showing 74 changed files with 22 additions and 638 deletions.
6 changes: 5 additions & 1 deletion Sources/Db/Schema/Column.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ class Column
*/
public ?bool $not_null;

/** @var string|float|int|bool|null Default value of the column. */
/**
* @var string|float|int|bool|null
*
* Default value of the column.
*/
public string|float|int|bool|null $default;

/**
Expand Down
7 changes: 0 additions & 7 deletions Sources/Db/Schema/Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,6 @@ abstract class Table
*/
public array $indexes = [];

/**
* @var array
*
* Initial columns for inserts.
*/
public array $initial_columns = [];

/**
* @var array
*
Expand Down
14 changes: 0 additions & 14 deletions Sources/Db/Schema/v3_0/AdminInfoFiles.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,6 @@ class AdminInfoFiles extends Table
* Public properties
*******************/

/**
* @var array
*
* Initial columns for inserts.
*/
public array $initial_columns = [
'id_file' => 'int',
'filename' => 'string',
'path' => 'string',
'parameters' => 'string',
'data' => 'string',
'filetype' => 'string',
];

/**
* @var array
*
Expand Down
7 changes: 0 additions & 7 deletions Sources/Db/Schema/v3_0/ApprovalQueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,6 @@ class ApprovalQueue extends Table
* Public properties
*******************/

/**
* @var array
*
* Initial columns for inserts.
*/
public array $initial_columns = [];

/**
* @var array
*
Expand Down
7 changes: 0 additions & 7 deletions Sources/Db/Schema/v3_0/Attachments.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,6 @@ class Attachments extends Table
* Public properties
*******************/

/**
* @var array
*
* Initial columns for inserts.
*/
public array $initial_columns = [];

/**
* @var array
*
Expand Down
7 changes: 0 additions & 7 deletions Sources/Db/Schema/v3_0/BackgroundTasks.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,6 @@ class BackgroundTasks extends Table
* Public properties
*******************/

/**
* @var array
*
* Initial columns for inserts.
*/
public array $initial_columns = [];

/**
* @var array
*
Expand Down
7 changes: 0 additions & 7 deletions Sources/Db/Schema/v3_0/BanGroups.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,6 @@ class BanGroups extends Table
* Public properties
*******************/

/**
* @var array
*
* Initial columns for inserts.
*/
public array $initial_columns = [];

/**
* @var array
*
Expand Down
7 changes: 0 additions & 7 deletions Sources/Db/Schema/v3_0/BanItems.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,6 @@ class BanItems extends Table
* Public properties
*******************/

/**
* @var array
*
* Initial columns for inserts.
*/
public array $initial_columns = [];

/**
* @var array
*
Expand Down
11 changes: 0 additions & 11 deletions Sources/Db/Schema/v3_0/BoardPermissions.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,6 @@ class BoardPermissions extends Table
* Public properties
*******************/

/**
* @var array
*
* Initial columns for inserts.
*/
public array $initial_columns = [
'id_group' => 'int',
'id_profile' => 'int',
'permission' => 'string',
];

/**
* @var array
*
Expand Down
11 changes: 0 additions & 11 deletions Sources/Db/Schema/v3_0/BoardPermissionsView.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,6 @@ class BoardPermissionsView extends Table
* Public properties
*******************/

/**
* @var array
*
* Initial columns for inserts.
*/
public array $initial_columns = [
'id_group' => 'int',
'id_board' => 'int',
'deny' => 'int',
];

/**
* @var array
*
Expand Down
18 changes: 0 additions & 18 deletions Sources/Db/Schema/v3_0/Boards.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,24 +28,6 @@ class Boards extends Table
* Public properties
*******************/

/**
* @var array
*
* Initial columns for inserts.
*/
public array $initial_columns = [
'id_board' => 'int',
'id_cat' => 'int',
'board_order' => 'int',
'id_last_msg' => 'int',
'id_msg_updated' => 'int',
'name' => 'string',
'description' => 'string',
'num_topics' => 'int',
'num_posts' => 'int',
'member_groups' => 'string',
];

/**
* @var array
*
Expand Down
7 changes: 0 additions & 7 deletions Sources/Db/Schema/v3_0/Calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,6 @@ class Calendar extends Table
* Public properties
*******************/

/**
* @var array
*
* Initial columns for inserts.
*/
public array $initial_columns = [];

/**
* @var array
*
Expand Down
10 changes: 0 additions & 10 deletions Sources/Db/Schema/v3_0/CalendarHolidays.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,6 @@ class CalendarHolidays extends Table
* Public properties
*******************/

/**
* @var array
*
* Initial columns for inserts.
*/
public array $initial_columns = [
'title' => 'string',
'event_date' => 'date',
];

/**
* @var array
*
Expand Down
13 changes: 0 additions & 13 deletions Sources/Db/Schema/v3_0/Categories.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,6 @@ class Categories extends Table
* Public properties
*******************/

/**
* @var array
*
* Initial columns for inserts.
*/
public array $initial_columns = [
'id_cat' => 'int',
'cat_order' => 'int',
'name' => 'string',
'description' => 'string',
'can_collapse' => 'int',
];

/**
* @var array
*
Expand Down
27 changes: 0 additions & 27 deletions Sources/Db/Schema/v3_0/CustomFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,33 +28,6 @@ class CustomFields extends Table
* Public properties
*******************/

/**
* @var array
*
* Initial columns for inserts.
*/
public array $initial_columns = [
'col_name' => 'string',
'field_name' => 'string',
'field_desc' => 'string',
'field_type' => 'string',
'field_length' => 'int',
'field_options' => 'string',
'field_order' => 'int',
'mask' => 'string',
'show_reg' => 'int',
'show_display' => 'int',
'show_mlist' => 'int',
'show_profile' => 'string',
'private' => 'int',
'active' => 'int',
'bbc' => 'int',
'can_search' => 'int',
'default_value' => 'string',
'enclose' => ' string',
'placement' => 'int',
];

/**
* @var array
*
Expand Down
7 changes: 0 additions & 7 deletions Sources/Db/Schema/v3_0/GroupModerators.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,6 @@ class GroupModerators extends Table
* Public properties
*******************/

/**
* @var array
*
* Initial columns for inserts.
*/
public array $initial_columns = [];

/**
* @var array
*
Expand Down
7 changes: 0 additions & 7 deletions Sources/Db/Schema/v3_0/LogActions.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,6 @@ class LogActions extends Table
* Public properties
*******************/

/**
* @var array
*
* Initial columns for inserts.
*/
public array $initial_columns = [];

/**
* @var array
*
Expand Down
7 changes: 0 additions & 7 deletions Sources/Db/Schema/v3_0/LogActivity.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,6 @@ class LogActivity extends Table
* Public properties
*******************/

/**
* @var array
*
* Initial columns for inserts.
*/
public array $initial_columns = [];

/**
* @var array
*
Expand Down
7 changes: 0 additions & 7 deletions Sources/Db/Schema/v3_0/LogBanned.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,6 @@ class LogBanned extends Table
* Public properties
*******************/

/**
* @var array
*
* Initial columns for inserts.
*/
public array $initial_columns = [];

/**
* @var array
*
Expand Down
7 changes: 0 additions & 7 deletions Sources/Db/Schema/v3_0/LogBoards.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,6 @@ class LogBoards extends Table
* Public properties
*******************/

/**
* @var array
*
* Initial columns for inserts.
*/
public array $initial_columns = [];

/**
* @var array
*
Expand Down
7 changes: 0 additions & 7 deletions Sources/Db/Schema/v3_0/LogComments.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,6 @@ class LogComments extends Table
* Public properties
*******************/

/**
* @var array
*
* Initial columns for inserts.
*/
public array $initial_columns = [];

/**
* @var array
*
Expand Down
7 changes: 0 additions & 7 deletions Sources/Db/Schema/v3_0/LogDigest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,6 @@ class LogDigest extends Table
* Public properties
*******************/

/**
* @var array
*
* Initial columns for inserts.
*/
public array $initial_columns = [];

/**
* @var array
*
Expand Down
7 changes: 0 additions & 7 deletions Sources/Db/Schema/v3_0/LogErrors.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,6 @@ class LogErrors extends Table
* Public properties
*******************/

/**
* @var array
*
* Initial columns for inserts.
*/
public array $initial_columns = [];

/**
* @var array
*
Expand Down
7 changes: 0 additions & 7 deletions Sources/Db/Schema/v3_0/LogFloodcontrol.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,6 @@ class LogFloodcontrol extends Table
* Public properties
*******************/

/**
* @var array
*
* Initial columns for inserts.
*/
public array $initial_columns = [];

/**
* @var array
*
Expand Down
Loading

0 comments on commit fd97a09

Please sign in to comment.