Files
nullcart/backend/src/database/migrations/1783806278430-add-shop-settings.ts
T
2026-08-28 17:31:02 +02:00

16 lines
744 B
TypeScript

import { MigrationInterface, QueryRunner } from 'typeorm';
export class AddShopSettings1783806278430 implements MigrationInterface {
name = 'AddShopSettings1783806278430';
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`CREATE TABLE "shop_settings" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "logoStorageKey" character varying, "simplexLink" character varying, "createdAt" TIMESTAMP NOT NULL DEFAULT now(), "updatedAt" TIMESTAMP NOT NULL DEFAULT now(), CONSTRAINT "PK_96c0aa2a327de09ebe0fd54ae5a" PRIMARY KEY ("id"))`
);
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`DROP TABLE "shop_settings"`);
}
}