Files
Extrudex/backend/migrations/000002_seed_data.down.sql
otto-bot fd39fff433
Some checks failed
Dev Build / build-test (pull_request) Failing after 1m46s
CUB-111: merge PostgreSQL schema and Go models into dev
2026-05-06 13:56:57 -04:00

16 lines
591 B
PL/PgSQL

-- Migration: 000002_seed_data (rollback)
-- Description: Remove seed data inserted in 000002
-- Author: Hex
-- Date: 2026-05-06
BEGIN;
DELETE FROM settings WHERE key IN ('default_low_stock_threshold_grams', 'default_diameter_mm', 'filament_cross_section_area_mm2');
DELETE FROM material_modifiers WHERE id IN (1, 2, 3, 4);
DELETE FROM material_finishes WHERE id IN (1, 2, 3, 4, 5);
DELETE FROM material_bases WHERE id IN (1, 2, 3, 4, 5, 6, 7);
DELETE FROM job_statuses WHERE id IN (1, 2, 3, 4, 5, 6);
DELETE FROM printer_types WHERE id IN (1, 2);
COMMIT;