diff --git a/console/migrations/m161228_121804_play_count_type.php b/console/migrations/m161228_121804_play_count_type.php new file mode 100644 index 0000000..a92da9b --- /dev/null +++ b/console/migrations/m161228_121804_play_count_type.php @@ -0,0 +1,16 @@ +alterColumn('intellectual_property', 'play_count', 'integer USING (play_count::integer)'); + } + + public function down() + { + + } +} diff --git a/frontend/models/IntellectualProperty.php b/frontend/models/IntellectualProperty.php index 7b27dcc..95a161c 100755 --- a/frontend/models/IntellectualProperty.php +++ b/frontend/models/IntellectualProperty.php @@ -39,6 +39,7 @@ [ [ 'user_id', + 'play_count', ], 'integer', ], @@ -59,7 +60,6 @@ 'contract', 'type', 'author_role', - 'play_count', ], 'string', 'max' => 255, diff --git a/frontend/views/cabinet/sales.php b/frontend/views/cabinet/sales.php index 03718cb..ffdb8c2 100755 --- a/frontend/views/cabinet/sales.php +++ b/frontend/views/cabinet/sales.php @@ -97,6 +97,20 @@ field( $property, + 'percent', + [ + 'options' => [ + 'class' => 'input-wrapp-320', + ], + ] + ) + ->textInput(); + ?> + +