fix permissions migration
This commit is contained in:
parent
09e7549081
commit
31f3652690
1 changed files with 33 additions and 33 deletions
|
@ -31,32 +31,32 @@ class RestructurePermissions extends Migration
|
||||||
$table->integer('user_id')->default(0);
|
$table->integer('user_id')->default(0);
|
||||||
$table->integer('rank_id')->default(0);
|
$table->integer('rank_id')->default(0);
|
||||||
|
|
||||||
$table->boolean('perm_change_profile')->nullable()->default(null);
|
$table->tinyInteger('perm_change_profile')->nullable()->default(null);
|
||||||
$table->boolean('perm_change_avatar')->nullable()->default(null);
|
$table->tinyInteger('perm_change_avatar')->nullable()->default(null);
|
||||||
$table->boolean('perm_change_background')->nullable()->default(null);
|
$table->tinyInteger('perm_change_background')->nullable()->default(null);
|
||||||
$table->boolean('perm_change_header')->nullable()->default(null);
|
$table->tinyInteger('perm_change_header')->nullable()->default(null);
|
||||||
$table->boolean('perm_change_userpage')->nullable()->default(null);
|
$table->tinyInteger('perm_change_userpage')->nullable()->default(null);
|
||||||
$table->boolean('perm_change_signature')->nullable()->default(null);
|
$table->tinyInteger('perm_change_signature')->nullable()->default(null);
|
||||||
$table->boolean('perm_change_username')->nullable()->default(null);
|
$table->tinyInteger('perm_change_username')->nullable()->default(null);
|
||||||
$table->boolean('perm_change_user_title')->nullable()->default(null);
|
$table->tinyInteger('perm_change_user_title')->nullable()->default(null);
|
||||||
|
|
||||||
$table->boolean('perm_deactivate_account')->nullable()->default(null);
|
$table->tinyInteger('perm_deactivate_account')->nullable()->default(null);
|
||||||
|
|
||||||
$table->boolean('perm_view_user_links')->nullable()->default(null);
|
$table->tinyInteger('perm_view_user_links')->nullable()->default(null);
|
||||||
$table->boolean('perm_view_user_details')->nullable()->default(null);
|
$table->tinyInteger('perm_view_user_details')->nullable()->default(null);
|
||||||
|
|
||||||
$table->boolean('perm_manage_ranks')->nullable()->default(null);
|
$table->tinyInteger('perm_manage_ranks')->nullable()->default(null);
|
||||||
$table->boolean('perm_manage_friends')->nullable()->default(null);
|
$table->tinyInteger('perm_manage_friends')->nullable()->default(null);
|
||||||
|
|
||||||
$table->boolean('perm_comments_create')->nullable()->default(null);
|
$table->tinyInteger('perm_comments_create')->nullable()->default(null);
|
||||||
$table->boolean('perm_comments_edit')->nullable()->default(null);
|
$table->tinyInteger('perm_comments_edit')->nullable()->default(null);
|
||||||
$table->boolean('perm_comments_delete')->nullable()->default(null);
|
$table->tinyInteger('perm_comments_delete')->nullable()->default(null);
|
||||||
$table->boolean('perm_comments_vote')->nullable()->default(null);
|
$table->tinyInteger('perm_comments_vote')->nullable()->default(null);
|
||||||
|
|
||||||
$table->boolean('perm_is_mod')->nullable()->default(null);
|
$table->tinyInteger('perm_is_mod')->nullable()->default(null);
|
||||||
$table->boolean('perm_is_admin')->nullable()->default(null);
|
$table->tinyInteger('perm_is_admin')->nullable()->default(null);
|
||||||
$table->boolean('perm_can_restrict')->nullable()->default(null);
|
$table->tinyInteger('perm_can_restrict')->nullable()->default(null);
|
||||||
$table->boolean('perm_manage_profile_images')->nullable()->default(null);
|
$table->tinyInteger('perm_manage_profile_images')->nullable()->default(null);
|
||||||
});
|
});
|
||||||
|
|
||||||
$schema->create('forum_perms', function (Blueprint $table) {
|
$schema->create('forum_perms', function (Blueprint $table) {
|
||||||
|
@ -64,23 +64,23 @@ class RestructurePermissions extends Migration
|
||||||
$table->integer('user_id')->default(0);
|
$table->integer('user_id')->default(0);
|
||||||
$table->integer('rank_id')->default(0);
|
$table->integer('rank_id')->default(0);
|
||||||
|
|
||||||
$table->boolean('perm_view')->nullable()->default(null);
|
$table->tinyInteger('perm_view')->nullable()->default(null);
|
||||||
$table->boolean('perm_reply')->nullable()->default(null);
|
$table->tinyInteger('perm_reply')->nullable()->default(null);
|
||||||
|
|
||||||
$table->boolean('perm_topic_create')->nullable()->default(null);
|
$table->tinyInteger('perm_topic_create')->nullable()->default(null);
|
||||||
$table->boolean('perm_topic_delete')->nullable()->default(null);
|
$table->tinyInteger('perm_topic_delete')->nullable()->default(null);
|
||||||
$table->boolean('perm_topic_move')->nullable()->default(null);
|
$table->tinyInteger('perm_topic_move')->nullable()->default(null);
|
||||||
|
|
||||||
$table->boolean('perm_edit')->nullable()->default(null);
|
$table->tinyInteger('perm_edit')->nullable()->default(null);
|
||||||
$table->boolean('perm_edit_any')->nullable()->default(null);
|
$table->tinyInteger('perm_edit_any')->nullable()->default(null);
|
||||||
|
|
||||||
$table->boolean('perm_delete')->nullable()->default(null);
|
$table->tinyInteger('perm_delete')->nullable()->default(null);
|
||||||
$table->boolean('perm_delete_any')->nullable()->default(null);
|
$table->tinyInteger('perm_delete_any')->nullable()->default(null);
|
||||||
|
|
||||||
$table->boolean('perm_bypass_rules')->nullable()->default(null);
|
$table->tinyInteger('perm_bypass_rules')->nullable()->default(null);
|
||||||
|
|
||||||
$table->boolean('perm_change_type')->nullable()->default(null);
|
$table->tinyInteger('perm_change_type')->nullable()->default(null);
|
||||||
$table->boolean('perm_change_status')->nullable()->default(null);
|
$table->tinyInteger('perm_change_status')->nullable()->default(null);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue