Skip to content
Snippets Groups Projects
Commit 99d288cf authored by Piotr Gawron's avatar Piotr Gawron
Browse files

migration script to set information sent for all users with finished

appointments
parent 5068f374
No related branches found
No related tags found
1 merge request!39Subject additional fields added
# -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2017-04-04 14:16
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('web', '0029_auto_20170404_1616'),
]
operations = [
migrations.RunSQL(
"update web_subject set information_sent=true where id in" +
"(select web_subject.id from web_appointment " +
" left join web_visit on visit_id = web_visit.id " +
" left join web_subject on web_visit.subject_id = web_subject.id where status = 'FINISHED');"),
]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment