Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions app/Config/Schema/sql/mushraider.sql
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ CREATE TABLE IF NOT EXISTS `{prefix}characters` (
`classe_id` int(11) NOT NULL,
`race_id` int(11) NOT NULL,
`default_role_id` int(11) NULL,
`level` int(3) NOT NULL,
`level` int(5) NOT NULL,
`main` TINYINT(1) NOT NULL DEFAULT '0',
`status` TINYINT( 1 ) NOT NULL DEFAULT '1',
`created` datetime DEFAULT NULL,
Expand Down Expand Up @@ -87,7 +87,7 @@ CREATE TABLE IF NOT EXISTS `{prefix}dungeons` (
`title` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
`slug` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`icon` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`level_required` int(3) NOT NULL DEFAULT '1',
`level_required` int(5) NOT NULL DEFAULT '1',
`game_id` int(11) NULL DEFAULT NULL,
`raidssize_id` int(11) NOT NULL,
`status` tinyint(1) NOT NULL DEFAULT '1',
Expand All @@ -113,7 +113,7 @@ CREATE TABLE IF NOT EXISTS `{prefix}events` (
`time_invitation` datetime NOT NULL,
`time_start` datetime NOT NULL,
`time_inscription` datetime DEFAULT NULL,
`character_level` int(3) NOT NULL,
`character_level` int(5) NOT NULL,
`nb_comments` int(5) DEFAULT 0,
`open` TINYINT(1) NOT NULL DEFAULT '0',
`created` datetime DEFAULT NULL,
Expand Down Expand Up @@ -174,7 +174,7 @@ CREATE TABLE IF NOT EXISTS `{prefix}events_templates` (
`dungeon_id` int(11) NOT NULL,
`time_invitation` datetime DEFAULT NULL,
`time_start` datetime DEFAULT NULL,
`character_level` int(3) NOT NULL,
`character_level` int(5) NOT NULL,
`open` TINYINT(1) NOT NULL DEFAULT '0',
`created` datetime DEFAULT NULL,
`modified` datetime DEFAULT NULL,
Expand Down
35 changes: 35 additions & 0 deletions app/Config/Schema/sql/mushraider_patch_v-1.8.1.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";

-- --------------------------------------------------------

--
-- Alter table `mr_characters` to allow higher levels above 999
--

ALTER TABLE `{prefix}characters` CHANGE `level` `level` INT(5) NOT NULL;

-- --------------------------------------------------------

--
-- Alter table `mr_dungeons` to allow higher levels above 999
--

ALTER TABLE `{prefix}dungeons` CHANGE `level_required` `level_required` INT(5) NOT NULL DEFAULT '1';

-- --------------------------------------------------------

--
-- Alter table `mr_dungeons` to allow higher levels above 999
--

ALTER TABLE `{prefix}events` CHANGE `character_level` `character_level` INT(5) NOT NULL;

-- --------------------------------------------------------

--
-- Alter table `mr_dungeons` to allow higher levels above 999
--

ALTER TABLE `{prefix}events_templates` CHANGE `character_level` `character_level` INT(5) NOT NULL;

-- --------------------------------------------------------
2 changes: 1 addition & 1 deletion app/Plugin/Admin/View/Dungeons/edit.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<i class="fa fa-plus-circle"></i> <?php echo __('or add custom number');?> <?php echo $this->Form->input('Dungeon.customraidssize', array('type' => 'text', 'label' => false, 'div' => false, 'class' => 'span1', 'pattern' => '[0-9]{1,3}'));?>
</div>
<div class="form-group">
<?php echo $this->Form->input('Dungeon.level_required', array('type' => 'text', 'required' => false, 'label' => __('Required level'), 'class' => 'span5', 'pattern' => '[0-9]{1,3}'));?>
<?php echo $this->Form->input('Dungeon.level_required', array('type' => 'text', 'required' => false, 'label' => __('Required level'), 'class' => 'span5', 'pattern' => '[0-9]{1,5}', 'maxlength' => 5));?>
</div>
<div class="form-group">
<?php echo $this->Form->input('Dungeon.icon', array('type' => 'file', 'label' => __('Icon').' (64px / 64px)', 'class' => 'span5 imageupload'));?>
Expand Down
2 changes: 1 addition & 1 deletion app/Plugin/Admin/View/Elements/addDungeon.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<i class="fa fa-plus-sign"></i> <?php echo __('or add custom number');?> <?php echo $this->Form->input('Dungeon.customraidssize', array('type' => 'text', 'label' => false, 'div' => false, 'class' => 'span1', 'pattern' => '[0-9]{1,3}'));?>
</div>
<div class="form-group">
<?php echo $this->Form->input('Dungeon.level_required', array('type' => 'text', 'required' => false, 'label' => __('Required level'), 'class' => 'span5', 'pattern' => '[0-9]{1,3}'));?>
<?php echo $this->Form->input('Dungeon.level_required', array('type' => 'text', 'required' => false, 'label' => __('Required level'), 'class' => 'span5', 'pattern' => '[0-9]{1,5}', 'maxlength' => 5));?>
</div>
<?php if(isset($isNotAjax)):?>
<div class="form-group">
Expand Down
2 changes: 1 addition & 1 deletion app/Plugin/Admin/View/Events/template_edit.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<?php echo $this->Form->input('EventsTemplate.dungeon_id', array('options' => $dungeonsList, 'required' => true, 'label' => __('Dungeon'), 'class' => 'span5'));?>
</div>
<div class="form-group">
<?php echo $this->Form->input('EventsTemplate.character_level', array('type' => 'text', 'required' => true, 'label' => __('Character minimum level'), 'class' => 'span5', 'pattern' => '[0-9]{1,3}'));?>
<?php echo $this->Form->input('EventsTemplate.character_level', array('type' => 'text', 'required' => true, 'label' => __('Character minimum level'), 'class' => 'span5', 'pattern' => '[0-9]{1,5}', 'maxlength' => 5));?>
</div>
<div class="form-group">
<?php echo $this->Form->input('EventsTemplate.time_invitation', array('type' => 'time', 'timeFormat' => 24, 'interval' => 15, 'required' => true, 'label' => __('Invitations start'), 'class' => 'span2'));?>
Expand Down
2 changes: 1 addition & 1 deletion app/View/Elements/char_form_elements.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
</div>

<div class="form-group">
<?php echo $this->Form->input('Character.level', array('type' => 'text', 'required' => true, 'label' => __('Level'), 'class' => 'span1', 'pattern' => '[0-9]{1,3}'));?>
<?php echo $this->Form->input('Character.level', array('type' => 'text', 'required' => true, 'label' => __('Level'), 'class' => 'span1', 'pattern' => '[0-9]{1,5}', 'maxlength' => 5));?>
</div>
2 changes: 1 addition & 1 deletion app/View/Events/add.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<?php endforeach;?>
<?php endif;?>
<div class="form-group form-roles">
<?php echo $this->Form->input('Event.character_level', array('type' => 'text', 'required' => true, 'label' => __('Character minimum level'), 'class' => 'span1'));?>
<?php echo $this->Form->input('Event.character_level', array('type' => 'text', 'required' => true, 'label' => __('Character minimum level'), 'class' => 'span1', 'maxlength' => 5));?>
</div>
</div>
<div class="span6">
Expand Down
2 changes: 1 addition & 1 deletion app/View/Events/edit.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<?php endforeach;?>
<?php endif;?>
<div class="form-group form-roles">
<?php echo $this->Form->input('Event.character_level', array('type' => 'text', 'required' => true, 'label' => __('Character minimum level'), 'class' => 'span1'));?>
<?php echo $this->Form->input('Event.character_level', array('type' => 'text', 'required' => true, 'label' => __('Character minimum level'), 'class' => 'span1', 'maxlength' => 5));?>
</div>
</div>
<div class="span6">
Expand Down