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,17 @@
|
||||
-- Favicon generated from business logo for dashboards and storefront
|
||||
|
||||
ALTER TABLE businesses
|
||||
ADD COLUMN IF NOT EXISTS favicon_media_id BIGINT;
|
||||
|
||||
DO $$
|
||||
BEGIN
|
||||
IF NOT EXISTS (
|
||||
SELECT 1
|
||||
FROM pg_constraint
|
||||
WHERE conname = 'businesses_favicon_media_id_fkey'
|
||||
) THEN
|
||||
ALTER TABLE businesses
|
||||
ADD CONSTRAINT businesses_favicon_media_id_fkey
|
||||
FOREIGN KEY (favicon_media_id) REFERENCES media (id) ON DELETE SET NULL;
|
||||
END IF;
|
||||
END $$;
|
||||
Reference in New Issue
Block a user