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

Attribute table seeder fixed #413 #430

Merged
merged 1 commit into from
Oct 6, 2021
Merged
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
59 changes: 29 additions & 30 deletions packages/Webkul/Admin/src/Database/Seeders/AttributeSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

class AttributeSeeder extends Seeder
{

public function run()
{
DB::table('attributes')->delete();
Expand Down Expand Up @@ -61,7 +60,7 @@ public function run()
'is_user_defined' => '0',
'created_at' => $now,
'updated_at' => $now,

], [
'id' => '4',
'code' => 'lead_source_id',
'name' => 'Source',
Expand All @@ -76,7 +75,7 @@ public function run()
'is_user_defined' => '0',
'created_at' => $now,
'updated_at' => $now,

], [
'id' => '5',
'code' => 'lead_type_id',
'name' => 'Type',
Expand All @@ -91,7 +90,7 @@ public function run()
'is_user_defined' => '0',
'created_at' => $now,
'updated_at' => $now,

], [
'id' => '6',
'code' => 'user_id',
'name' => 'Sales Owner',
Expand All @@ -106,7 +105,7 @@ public function run()
'is_user_defined' => '0',
'created_at' => $now,
'updated_at' => $now,

], [
'id' => '7',
'code' => 'expected_close_date',
'name' => 'Expected Close Date',
Expand All @@ -121,7 +120,7 @@ public function run()
'is_user_defined' => '0',
'created_at' => $now,
'updated_at' => $now,

], [
'id' => '9',
'code' => 'name',
'name' => 'Name',
Expand All @@ -136,7 +135,7 @@ public function run()
'is_user_defined' => '0',
'created_at' => $now,
'updated_at' => $now,

], [
'id' => '10',
'code' => 'emails',
'name' => 'Emails',
Expand All @@ -151,7 +150,7 @@ public function run()
'is_user_defined' => '0',
'created_at' => $now,
'updated_at' => $now,

], [
'id' => '11',
'code' => 'contact_numbers',
'name' => 'Contact Numbers',
Expand All @@ -166,7 +165,7 @@ public function run()
'is_user_defined' => '0',
'created_at' => $now,
'updated_at' => $now,

], [
'id' => '12',
'code' => 'organization_id',
'name' => 'Organization',
Expand All @@ -181,7 +180,7 @@ public function run()
'is_user_defined' => '0',
'created_at' => $now,
'updated_at' => $now,

], [
'id' => '13',
'code' => 'name',
'name' => 'Name',
Expand All @@ -196,7 +195,7 @@ public function run()
'is_user_defined' => '0',
'created_at' => $now,
'updated_at' => $now,

], [
'id' => '14',
'code' => 'address',
'name' => 'Address',
Expand All @@ -211,7 +210,7 @@ public function run()
'is_user_defined' => '0',
'created_at' => $now,
'updated_at' => $now,

], [
'id' => '15',
'code' => 'name',
'name' => 'Name',
Expand All @@ -226,7 +225,7 @@ public function run()
'is_user_defined' => '0',
'created_at' => $now,
'updated_at' => $now,

], [
'id' => '16',
'code' => 'description',
'name' => 'Description',
Expand All @@ -241,7 +240,7 @@ public function run()
'is_user_defined' => '0',
'created_at' => $now,
'updated_at' => $now,

], [
'id' => '17',
'code' => 'sku',
'name' => 'SKU',
Expand All @@ -256,7 +255,7 @@ public function run()
'is_user_defined' => '0',
'created_at' => $now,
'updated_at' => $now,

], [
'id' => '18',
'code' => 'quantity',
'name' => 'Quantity',
Expand All @@ -271,7 +270,7 @@ public function run()
'is_user_defined' => '0',
'created_at' => $now,
'updated_at' => $now,

], [
'id' => '19',
'code' => 'price',
'name' => 'Price',
Expand All @@ -286,7 +285,7 @@ public function run()
'is_user_defined' => '0',
'created_at' => $now,
'updated_at' => $now,

], [
'id' => '20',
'code' => 'user_id',
'name' => 'Sales Owner',
Expand All @@ -301,7 +300,7 @@ public function run()
'is_user_defined' => '0',
'created_at' => $now,
'updated_at' => $now,

], [
'id' => '21',
'code' => 'subject',
'name' => 'Subject',
Expand All @@ -316,7 +315,7 @@ public function run()
'is_user_defined' => '0',
'created_at' => $now,
'updated_at' => $now,

], [
'id' => '22',
'code' => 'description',
'name' => 'Description',
Expand All @@ -331,7 +330,7 @@ public function run()
'is_user_defined' => '0',
'created_at' => $now,
'updated_at' => $now,

], [
'id' => '23',
'code' => 'billing_address',
'name' => 'Billing Address',
Expand All @@ -346,7 +345,7 @@ public function run()
'is_user_defined' => '0',
'created_at' => $now,
'updated_at' => $now,

], [
'id' => '24',
'code' => 'shipping_address',
'name' => 'Shipping Address',
Expand All @@ -361,7 +360,7 @@ public function run()
'is_user_defined' => '0',
'created_at' => $now,
'updated_at' => $now,

], [
'id' => '25',
'code' => 'discount_percent',
'name' => 'Discount Percent',
Expand All @@ -376,7 +375,7 @@ public function run()
'is_user_defined' => '0',
'created_at' => $now,
'updated_at' => $now,

], [
'id' => '26',
'code' => 'discount_amount',
'name' => 'Discount Amount',
Expand All @@ -391,7 +390,7 @@ public function run()
'is_user_defined' => '0',
'created_at' => $now,
'updated_at' => $now,

], [
'id' => '27',
'code' => 'tax_amount',
'name' => 'Tax Amount',
Expand All @@ -406,7 +405,7 @@ public function run()
'is_user_defined' => '0',
'created_at' => $now,
'updated_at' => $now,

], [
'id' => '28',
'code' => 'adjustment_amount',
'name' => 'Adjustment Amount',
Expand All @@ -421,7 +420,7 @@ public function run()
'is_user_defined' => '0',
'created_at' => $now,
'updated_at' => $now,

], [
'id' => '29',
'code' => 'sub_total',
'name' => 'Sub Total',
Expand All @@ -436,7 +435,7 @@ public function run()
'is_user_defined' => '0',
'created_at' => $now,
'updated_at' => $now,

], [
'id' => '30',
'code' => 'grand_total',
'name' => 'Grand Total',
Expand All @@ -451,7 +450,7 @@ public function run()
'is_user_defined' => '0',
'created_at' => $now,
'updated_at' => $now,

], [
'id' => '31',
'code' => 'expired_at',
'name' => 'Expired At',
Expand All @@ -466,7 +465,7 @@ public function run()
'is_user_defined' => '0',
'created_at' => $now,
'updated_at' => $now,

], [
'id' => '32',
'code' => 'person_id',
'name' => 'Person',
Expand All @@ -484,4 +483,4 @@ public function run()
]
]);
}
}
}