Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export class TableCategoriesEntity {
@Column({ type: 'varchar', length: 255 })
category_name: string;

@Column({ type: 'varchar', length: 255, nullable: false })
@Column({ type: 'varchar', length: 255, nullable: true, default: null })
category_id: string;

@Column({ type: 'varchar', length: 255, default: null, nullable: true })
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { MigrationInterface, QueryRunner } from 'typeorm';

export class AddCategoryColorPropertyAndCategoryIdToTableCategoriesEntity1761142678373 implements MigrationInterface {
name = 'AddCategoryColorPropertyAndCategoryIdToTableCategoriesEntity1761142678373';
export class AddCategoryColorPropertyAndCategoryIdToTableCategoriesEntity1761305606579 implements MigrationInterface {
name = 'AddCategoryColorPropertyAndCategoryIdToTableCategoriesEntity1761305606579';

public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "table_categories" ADD "category_id" character varying(255) NOT NULL`);
await queryRunner.query(`ALTER TABLE "table_categories" ADD "category_id" character varying(255)`);
await queryRunner.query(`ALTER TABLE "table_categories" ADD "category_color" character varying(255)`);
}

Expand Down
Loading