Set verbosity to 0 when update_all_contenttypes()

remotes/origin/logger
David Barragán Merino 2015-09-08 09:30:52 +02:00
parent 4f761fe33f
commit 0cb8cfc52c
5 changed files with 5 additions and 5 deletions

View File

@ -7,7 +7,7 @@ from django.contrib.contenttypes.models import ContentType
from django.contrib.contenttypes.management import update_all_contenttypes from django.contrib.contenttypes.management import update_all_contenttypes
def create_notifications(apps, schema_editor): def create_notifications(apps, schema_editor):
update_all_contenttypes() update_all_contenttypes(verbosity=0)
sql=""" sql="""
INSERT INTO notifications_watched (object_id, created_date, content_type_id, user_id, project_id) INSERT INTO notifications_watched (object_id, created_date, content_type_id, user_id, project_id)
SELECT issue_id AS object_id, now() AS created_date, {content_type_id} AS content_type_id, user_id, project_id SELECT issue_id AS object_id, now() AS created_date, {content_type_id} AS content_type_id, user_id, project_id

View File

@ -7,7 +7,7 @@ from django.contrib.contenttypes.models import ContentType
from django.contrib.contenttypes.management import update_all_contenttypes from django.contrib.contenttypes.management import update_all_contenttypes
def create_notifications(apps, schema_editor): def create_notifications(apps, schema_editor):
update_all_contenttypes() update_all_contenttypes(verbosity=0)
sql=""" sql="""
INSERT INTO notifications_watched (object_id, created_date, content_type_id, user_id, project_id) INSERT INTO notifications_watched (object_id, created_date, content_type_id, user_id, project_id)
SELECT milestone_id AS object_id, now() AS created_date, {content_type_id} AS content_type_id, user_id, project_id SELECT milestone_id AS object_id, now() AS created_date, {content_type_id} AS content_type_id, user_id, project_id

View File

@ -7,7 +7,7 @@ from django.contrib.contenttypes.models import ContentType
from django.contrib.contenttypes.management import update_all_contenttypes from django.contrib.contenttypes.management import update_all_contenttypes
def create_notifications(apps, schema_editor): def create_notifications(apps, schema_editor):
update_all_contenttypes() update_all_contenttypes(verbosity=0)
sql=""" sql="""
INSERT INTO notifications_watched (object_id, created_date, content_type_id, user_id, project_id) INSERT INTO notifications_watched (object_id, created_date, content_type_id, user_id, project_id)
SELECT task_id AS object_id, now() AS created_date, {content_type_id} AS content_type_id, user_id, project_id SELECT task_id AS object_id, now() AS created_date, {content_type_id} AS content_type_id, user_id, project_id

View File

@ -7,7 +7,7 @@ from django.contrib.contenttypes.models import ContentType
from django.contrib.contenttypes.management import update_all_contenttypes from django.contrib.contenttypes.management import update_all_contenttypes
def create_notifications(apps, schema_editor): def create_notifications(apps, schema_editor):
update_all_contenttypes() update_all_contenttypes(verbosity=0)
sql=""" sql="""
INSERT INTO notifications_watched (object_id, created_date, content_type_id, user_id, project_id) INSERT INTO notifications_watched (object_id, created_date, content_type_id, user_id, project_id)
SELECT userstory_id AS object_id, now() AS created_date, {content_type_id} AS content_type_id, user_id, project_id SELECT userstory_id AS object_id, now() AS created_date, {content_type_id} AS content_type_id, user_id, project_id

View File

@ -7,7 +7,7 @@ from django.contrib.contenttypes.models import ContentType
from django.contrib.contenttypes.management import update_all_contenttypes from django.contrib.contenttypes.management import update_all_contenttypes
def create_notifications(apps, schema_editor): def create_notifications(apps, schema_editor):
update_all_contenttypes() update_all_contenttypes(verbosity=0)
sql=""" sql="""
INSERT INTO notifications_watched (object_id, created_date, content_type_id, user_id, project_id) INSERT INTO notifications_watched (object_id, created_date, content_type_id, user_id, project_id)
SELECT wikipage_id AS object_id, now() AS created_date, {content_type_id} AS content_type_id, user_id, project_id SELECT wikipage_id AS object_id, now() AS created_date, {content_type_id} AS content_type_id, user_id, project_id