Skip to content
Snippets Groups Projects
Unverified Commit 4db787c4 authored by tamaina's avatar tamaina Committed by GitHub
Browse files

fix(server): マイグレーションad1676438468213が通らないのを修正 (#9963)

* fix(server): マイグレーションad1676438468213が通らないのを修正
Fix #9962

* fix
parent 839a6267
No related branches found
No related tags found
No related merge requests found
export class ad1676438468213 {
name = 'ad1676438468213';
async up(queryRunner) {
await queryRunner.query(`ALTER TABLE "ad" ADD "startsAt" TIMESTAMP WITH TIME ZONE NOT NULL`);
await queryRunner.query(`ALTER TABLE "ad" ADD "startsAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now()`);
}
async down(queryRunner) {
await queryRunner.query(`ALTER TABLE "role" DROP COLUMN "startsAt"`);
......
......@@ -21,6 +21,7 @@ export class Ad {
@Index()
@Column('timestamp with time zone', {
comment: 'The expired date of the Ad.',
default: () => 'now()',
})
public startsAt: Date;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment