mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-13 15:34:38 +01:00
Added db init script. Combined all schemas under schemas. Persisted
updates and init
This commit is contained in:
11
schemas/patch-schema/14-fix-fpoint-trades.sql
Normal file
11
schemas/patch-schema/14-fix-fpoint-trades.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
BEGIN;
|
||||
|
||||
DELETE FROM public.fpoint_items;
|
||||
ALTER TABLE IF EXISTS public.fpoint_items ALTER COLUMN item_type SET NOT NULL;
|
||||
ALTER TABLE IF EXISTS public.fpoint_items ALTER COLUMN item_id SET NOT NULL;
|
||||
ALTER TABLE IF EXISTS public.fpoint_items ALTER COLUMN quantity SET NOT NULL;
|
||||
ALTER TABLE IF EXISTS public.fpoint_items ALTER COLUMN fpoints SET NOT NULL;
|
||||
ALTER TABLE IF EXISTS public.fpoint_items DROP COLUMN IF EXISTS trade_type;
|
||||
ALTER TABLE IF EXISTS public.fpoint_items ADD COLUMN buyable boolean NOT NULL;
|
||||
|
||||
END;
|
||||
Reference in New Issue
Block a user