Skip to content

Commit

Permalink
fix description field
Browse files Browse the repository at this point in the history
  • Loading branch information
bahram1249 committed Jun 23, 2024
1 parent 49922dc commit 920b41d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
20 changes: 20 additions & 0 deletions apps/main/src/sql/core-v1.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6231,6 +6231,26 @@ GO



IF NOT EXISTS (SELECT 1 FROM Migrations WHERE version = 'ecommerce-commentstatuses-Data-v2'
)
AND EXISTS (
SELECT 1 FROM Settings
WHERE ([key] = 'SITE_NAME' AND [value] IN ('ecommerce'))
)
BEGIN

INSERT INTO ECProductCommentStatuses(id, [name], createdAt, updatedAt)
VALUES (3, N'پاسخ توسط ادمین', GETDATE(), GETDATE())


INSERT INTO Migrations(version, createdAt, updatedAt)
SELECT 'ecommerce-commentstatuses-Data-v2', GETDATE(), GETDATE()
END

GO



-- data takhfif
-- buffetType
IF NOT EXISTS (SELECT 1 FROM Migrations WHERE version = 'DiscountCoffe-buffetType-Data-v1'
Expand Down
9 changes: 3 additions & 6 deletions libs/database/src/models/eav/eav-entity-type.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,9 @@ export class EAVEntityType extends Model {
metaDescription?: string;

@AutoMap()
@IsOptional()
@IsString()
@ApiProperty({
required: true,
type: String,
description: 'description',
@Column({
type: DataType.STRING,
allowNull: true,
})
public description?: string;
}

0 comments on commit 920b41d

Please sign in to comment.