mirror of
https://git.meshkee.com/Meshkee/backend.git
synced 2026-08-11 22:30:59 +04:30
Initial commit: Meshkee CMS API
NestJS backend with Prisma, Docker Compose for Postgres/Redis, and deploy docs for the production VM.
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
ALTER TABLE domains
|
||||
ADD COLUMN IF NOT EXISTS expires_at TIMESTAMPTZ,
|
||||
ADD COLUMN IF NOT EXISTS is_active BOOLEAN NOT NULL DEFAULT TRUE;
|
||||
|
||||
CREATE INDEX IF NOT EXISTS idx_domains_is_active ON domains (is_active);
|
||||
|
||||
UPDATE domains
|
||||
SET expires_at = NOW() + INTERVAL '365 days'
|
||||
WHERE expires_at IS NULL;
|
||||
Reference in New Issue
Block a user