Fixing badly created restriction
parent
98d77a4628
commit
42832511ed
|
@ -0,0 +1,31 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
from django_pgjson.fields import JsonField
|
||||||
|
|
||||||
|
from django.db import models, migrations
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('history', '0005_auto_20141120_1119'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.RunSQL(
|
||||||
|
sql='ALTER TABLE history_historyentry ALTER COLUMN "user" DROP NOT NULL;',
|
||||||
|
),
|
||||||
|
migrations.RunSQL(
|
||||||
|
sql='ALTER TABLE history_historyentry ALTER COLUMN "diff" DROP NOT NULL;',
|
||||||
|
),
|
||||||
|
migrations.RunSQL(
|
||||||
|
sql='ALTER TABLE history_historyentry ALTER COLUMN "snapshot" DROP NOT NULL;',
|
||||||
|
),
|
||||||
|
migrations.RunSQL(
|
||||||
|
sql='ALTER TABLE history_historyentry ALTER COLUMN "values" DROP NOT NULL;',
|
||||||
|
),
|
||||||
|
migrations.RunSQL(
|
||||||
|
sql='ALTER TABLE history_historyentry ALTER COLUMN "delete_comment_user" DROP NOT NULL;',
|
||||||
|
),
|
||||||
|
]
|
|
@ -0,0 +1,46 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
from django_pgjson.fields import JsonField
|
||||||
|
|
||||||
|
from django.db import models, migrations
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('projects', '0015_auto_20141230_1212'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.RunSQL(
|
||||||
|
sql='ALTER TABLE projects_projectmodulesconfig ALTER COLUMN config DROP NOT NULL;',
|
||||||
|
),
|
||||||
|
migrations.RunSQL(
|
||||||
|
sql='ALTER TABLE projects_projecttemplate ALTER COLUMN default_options DROP NOT NULL;',
|
||||||
|
),
|
||||||
|
migrations.RunSQL(
|
||||||
|
sql='ALTER TABLE projects_projecttemplate ALTER COLUMN us_statuses DROP NOT NULL;',
|
||||||
|
),
|
||||||
|
migrations.RunSQL(
|
||||||
|
sql='ALTER TABLE projects_projecttemplate ALTER COLUMN points DROP NOT NULL;',
|
||||||
|
),
|
||||||
|
migrations.RunSQL(
|
||||||
|
sql='ALTER TABLE projects_projecttemplate ALTER COLUMN task_statuses DROP NOT NULL;',
|
||||||
|
),
|
||||||
|
migrations.RunSQL(
|
||||||
|
sql='ALTER TABLE projects_projecttemplate ALTER COLUMN issue_statuses DROP NOT NULL;',
|
||||||
|
),
|
||||||
|
migrations.RunSQL(
|
||||||
|
sql='ALTER TABLE projects_projecttemplate ALTER COLUMN issue_types DROP NOT NULL;',
|
||||||
|
),
|
||||||
|
migrations.RunSQL(
|
||||||
|
sql='ALTER TABLE projects_projecttemplate ALTER COLUMN priorities DROP NOT NULL;',
|
||||||
|
),
|
||||||
|
migrations.RunSQL(
|
||||||
|
sql='ALTER TABLE projects_projecttemplate ALTER COLUMN severities DROP NOT NULL;',
|
||||||
|
),
|
||||||
|
migrations.RunSQL(
|
||||||
|
sql='ALTER TABLE projects_projecttemplate ALTER COLUMN roles DROP NOT NULL;',
|
||||||
|
),
|
||||||
|
]
|
|
@ -0,0 +1,19 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
from django_pgjson.fields import JsonField
|
||||||
|
|
||||||
|
from django.db import models, migrations
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('userstorage', '0001_initial'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.RunSQL(
|
||||||
|
sql='ALTER TABLE userstorage_storageentry ALTER COLUMN value DROP NOT NULL;',
|
||||||
|
),
|
||||||
|
]
|
Loading…
Reference in New Issue