-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path008-gallformers.sql
28 lines (22 loc) · 984 Bytes
/
008-gallformers.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
-- Up
PRAGMA foreign_keys=OFF;
-- Simple changes adding gall descriptors per #75
INSERT INTO location (id, location, description) VALUES (NULL, 'leaf edge', '');
INSERT INTO texture (id, texture, description) VALUES (NULL, 'erineum', '');
INSERT INTO color (id, color) VALUES (NULL, 'green');
INSERT INTO color (id, color) VALUES (NULL, 'black');
INSERT INTO color (id, color) VALUES (NULL, 'purple');
INSERT INTO color (id, color) VALUES (NULL, 'tan');
INSERT INTO alignment (id, alignment) VALUES (NULL, 'leaning', '');
PRAGMA foreign_keys=ON;
--------------------------------------------------------------
-- Down
PRAGMA foreign_keys=OFF;
DELETE FROM location WHERE location = 'leaf edge';
DELETE FROM texture WHERE texture = 'erineum';
DELETE FROM color WHERE color = 'green';
DELETE FROM color WHERE color = 'black';
DELETE FROM color WHERE color = 'purple';
DELETE FROM color WHERE color = 'tan';
DELETE FROM alignment WHERE alignment = 'leaning';
PRAGMA foreign_keys=ON;