BrickTracker/bricktracker/sql/checkbox/add.sql

16 lines
292 B
SQL

BEGIN TRANSACTION;
ALTER TABLE "bricktracker_set_statuses"
ADD COLUMN "status_{{ id }}" BOOLEAN NOT NULL DEFAULT 0;
INSERT INTO "bricktracker_set_checkboxes" (
"id",
"name",
"displayed_on_grid"
) VALUES (
'{{ id }}',
'{{ name }}',
{{ displayed_on_grid }}
);
COMMIT;