Home | History | Annotate | Download | only in migrations
      1 UP_SQL = """
      2 ALTER TABLE special_tasks ADD requested_by_id integer;
      3 
      4 ALTER TABLE special_tasks ADD CONSTRAINT special_tasks_requested_by_id
      5         FOREIGN KEY (requested_by_id) REFERENCES users (id) ON DELETE NO ACTION;
      6 """
      7 
      8 DOWN_SQL = """
      9 ALTER TABLE special_tasks DROP FOREIGN KEY special_tasks_requested_by_id;
     10 ALTER TABLE special_tasks DROP COLUMN requested_by_id;
     11 """
     12