Merge dev to main #1
11
alter-tenant-id.sh
Normal file
11
alter-tenant-id.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
cd packages/db
|
||||
node -e "
|
||||
const { Client } = require('pg');
|
||||
const url = process.env.DATABASE_URL.replace(/%21/g, '!');
|
||||
const c = new Client(url);
|
||||
c.connect().then(() => c.query('ALTER TABLE users ALTER COLUMN tenantId DROP NOT NULL'))
|
||||
.then(() => { console.log('tenantId nullable OK'); return c.end(); })
|
||||
.catch(e => { console.log('Error:', e.message.substring(0,100)); return c.end(); });
|
||||
"
|
||||
npx tsx prisma/seed.ts
|
||||
7
src/comment/dto/create-comment.dto.bak
Normal file
7
src/comment/dto/create-comment.dto.bak
Normal file
@@ -0,0 +1,7 @@
|
||||
import { IsString, MinLength } from 'class-validator';
|
||||
|
||||
export class CreateCommentDto {
|
||||
@IsString()
|
||||
@MinLength(1)
|
||||
content!: string;
|
||||
}
|
||||
Reference in New Issue
Block a user