c70424d7046d1bb4218604015e3283b216124a7d
[plcapi.git] / migrations / 001-down-site-and-person-tags.sql
1 -- 
2 -- purpose: provide a way to delete the additions added by the up script.
3 -- NOTE: this does not leave the DB in a usable state, since it drops the view_sites and view_persons;
4 -- 
5
6 DROP VIEW view_site_tags;
7 DROP VIEW view_sites;
8 DROP VIEW site_tags;
9 DROP TABLE site_tag;
10
11 DROP VIEW view_person_tags;
12 DROP VIEW view_persons;
13 DROP VIEW person_tags;
14 DROP TABLE person_tag;
15
16 UPDATE plc_db_version SET subversion = 0;