Update Task #39: Creation date already implemented in remittance history
This commit is contained in:
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
|
||||
Reference in New Issue
Block a user