Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Is_Required Property to Attributes #1896

Draft
wants to merge 8 commits into
base: development
Choose a base branch
from
Draft

Add Is_Required Property to Attributes #1896

wants to merge 8 commits into from

Conversation

Keysie27
Copy link
Collaborator

@Keysie27 Keysie27 commented Sep 3, 2024

No description provided.

@Keysie27 Keysie27 changed the title Update/Create Attribute Type and Is_Required Property Add Is_Required Property to Attributes Sep 3, 2024
public function up(): void
{
Schema::table('attributes', function (Blueprint $table) {
$table->boolean('is_required')->after('attributes_type_id')->default(false);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Keysie27 add it as a index also

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move it as a draft and add test for future release

@Keysie27 Keysie27 marked this pull request as draft September 3, 2024 16:33
@rwhite27
Copy link
Collaborator

@kaioken is this pr still valid or can i close it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants