mirror of
https://github.com/misskey-dev/misskey
synced 2024-11-28 14:58:36 +09:00
fix(server): マイグレーションad1676438468213が通らないのを修正 (#9963)
* fix(server): マイグレーションad1676438468213が通らないのを修正 Fix #9962 * fix
This commit is contained in:
parent
839a626716
commit
4db787c4ee
@ -1,7 +1,7 @@
|
||||
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user