From 7a6571fbd57a256d7ec65fe914b97bd282fd3698 Mon Sep 17 00:00:00 2001 From: Kakabay <2kakabayashyrberdyew@gmail.com> Date: Fri, 13 Oct 2023 02:04:25 +0500 Subject: [PATCH] user web variants --- .../user/updates/users_add_web_variants.php | 36 +++++++++ plugins/rainlab/user/updates/version.yaml | 77 ++++++++++--------- 2 files changed, 76 insertions(+), 37 deletions(-) create mode 100644 plugins/rainlab/user/updates/users_add_web_variants.php diff --git a/plugins/rainlab/user/updates/users_add_web_variants.php b/plugins/rainlab/user/updates/users_add_web_variants.php new file mode 100644 index 0000000..f00aba0 --- /dev/null +++ b/plugins/rainlab/user/updates/users_add_web_variants.php @@ -0,0 +1,36 @@ +string('web1')->nullable(); + $table->string('web2')->nullable(); + $table->string('web3')->nullable(); + $table->string('web4')->nullable(); + $table->string('web5')->nullable(); + $table->string('web6')->nullable(); + }); + } + + public function down() + { + if (Schema::hasColumn('users', 'web1')) { + Schema::table('users', function($table) + { + $table->dropColumn('web1'); + $table->dropColumn('web2'); + $table->dropColumn('web3'); + $table->dropColumn('web4'); + $table->dropColumn('web5'); + $table->dropColumn('web6'); + }); + } + + } +} diff --git a/plugins/rainlab/user/updates/version.yaml b/plugins/rainlab/user/updates/version.yaml index ccc52c5..2c5e070 100644 --- a/plugins/rainlab/user/updates/version.yaml +++ b/plugins/rainlab/user/updates/version.yaml @@ -1,59 +1,59 @@ v1.0.1: - - Initialize plugin. - - create_users_table.php - - create_throttle_table.php + - Initialize plugin. + - create_users_table.php + - create_throttle_table.php v1.0.2: Seed tables. v1.0.3: Translated hard-coded text to language strings. v1.0.4: Improvements to user-interface for Location manager. v1.0.5: Added contact details for users. v1.0.6: - - Added Mail Blocker utility so users can block specific mail templates. - - create_mail_blockers_table.php + - Added Mail Blocker utility so users can block specific mail templates. + - create_mail_blockers_table.php v1.0.7: Add back-end Settings page. v1.0.8: Updated the Settings page. v1.0.9: Adds new welcome mail message for users and administrators. v1.0.10: Adds administrator-only activation mode. v1.0.11: - - Users now have an optional login field that defaults to the email field. - - users_add_login_column.php + - Users now have an optional login field that defaults to the email field. + - users_add_login_column.php v1.0.12: - - Create a dedicated setting for choosing the login mode. - - users_rename_login_to_username.php + - Create a dedicated setting for choosing the login mode. + - users_rename_login_to_username.php v1.0.13: Minor fix to the Account sign in logic. v1.0.14: Minor improvements to the code. v1.0.15: - - Adds last name column to users table (surname). - - users_add_surname.php + - Adds last name column to users table (surname). + - users_add_surname.php v1.0.16: Require permissions for settings page too. v1.1.0: Profile fields and Locations have been removed. v1.1.1: - - Users can now be added to groups. - - create_user_groups_table.php - - seed_user_groups_table.php + - Users can now be added to groups. + - create_user_groups_table.php + - seed_user_groups_table.php v1.1.2: A raw URL can now be passed as the redirect property in the Account component. v1.1.3: Adds a super user flag to the users table, reserved for future use. v1.1.4: User list can be filtered by the group they belong to. v1.1.5: Adds a new permission to hide the User settings menu item. v1.2.0: - - Users can now deactivate their own accounts. - - users_add_deleted_at.php + - Users can now deactivate their own accounts. + - users_add_deleted_at.php v1.2.1: New feature for checking if a user is recently active/online. v1.2.2: Add bulk action button to user list. v1.2.3: Included some descriptive paragraphs in the Reset Password component markup. v1.2.4: Added a checkbox for blocking all mail sent to the user. v1.2.5: - - Database maintenance. Updated all timestamp columns to be nullable. - - update_timestamp_nullable.php + - Database maintenance. Updated all timestamp columns to be nullable. + - update_timestamp_nullable.php v1.2.6: - - Add a dedicated last seen column for users. - - users_add_last_seen.php + - Add a dedicated last seen column for users. + - users_add_last_seen.php v1.2.7: Minor fix to user timestamp attributes. v1.2.8: Add date range filter to users list. Introduced a logout event. v1.2.9: Add invitation mail for new accounts created in the back-end. v1.3.0: - - Introduced guest user accounts. - - users_add_guest_flag.php - - users_add_superuser_flag.php + - Introduced guest user accounts. + - users_add_guest_flag.php + - users_add_superuser_flag.php v1.3.1: User notification variables can now be extended. v1.3.2: Minor fix to the Auth::register method. v1.3.3: Allow prevention of concurrent user sessions via the user settings. @@ -69,8 +69,8 @@ v1.4.7: Fixes redirect bug in Account component / Update translations and separa v1.4.8: Fixes a bug where calling MailBlocker::removeBlock could remove all mail blocks for the user. v1.5.0: Required password length is now a minimum of 8 characters. Previous passwords will not be affected until the next password change. v1.5.1: - - User IP addresses are now logged. Introduce registration throttle. - - users_add_ip_address.php + - User IP addresses are now logged. Introduce registration throttle. + - users_add_ip_address.php v1.5.2: Whitespace from usernames is now trimmed, allowed for username to be added to Reset Password mail templates. v1.5.3: Fixes a bug in the user update functionality if password is not changed. Added highlighting for banned users in user list. v1.5.4: Multiple translation improvements. Added view events to extend user preview and user listing toolbars. @@ -84,20 +84,23 @@ v1.7.0: Add password policy v1.7.1: Fixes compatibility with legacy sites v1.7.2: Stability fixes v1.7.4: - - Add adittional infos gurlushyk - - users_add_additionals.php + - Add adittional infos gurlushyk + - users_add_additionals.php v1.7.5: - - Add brand sliders gurlushyk - - users_add_sliders.php + - Add brand sliders gurlushyk + - users_add_sliders.php v1.7.6: - - Add featured user gurlushyk - - users_add_featured.php + - Add featured user gurlushyk + - users_add_featured.php v1.7.7: - - Add banner user gurlushyk - - users_add_banner.php + - Add banner user gurlushyk + - users_add_banner.php v1.7.8: - - Add is category user gurlushyk - - users_add_is_category.php + - Add is category user gurlushyk + - users_add_is_category.php v1.7.9: - - Add social user gurlushyk - - users_add_social_medias.php + - Add social user gurlushyk + - users_add_social_medias.php +v1.7.10: + - Add web vartiants + - users_add_web_variants.php