Ce serveur Gitlab sera éteint le 30 juin 2020, pensez à migrer vos projets vers les serveurs gitlab-research.centralesupelec.fr et gitlab-student.centralesupelec.fr !

Commit c1f55e79 authored by Levy--Falk Hugo's avatar Levy--Falk Hugo

Enlève le raw sql des migrations

parent f5deab14
...@@ -31,17 +31,18 @@ def add_comnpay(apps, schema_editor): ...@@ -31,17 +31,18 @@ def add_comnpay(apps, schema_editor):
comnpay.payment = payment comnpay.payment = payment
comnpay.save() comnpay.save()
payment.moyen = "ComnPay" payment.moyen = "ComnPay"
payment.save() payment.save()
class Migration(migrations.Migration): class Migration(migrations.Migration):
dependencies = [ dependencies = [
('preferences', '0044_remove_payment_pass'),
('cotisations', '0031_article_allow_self_subscription'), ('cotisations', '0031_article_allow_self_subscription'),
] ]
operations = [ operations = [
migrations.RunSQL('update preferences_assooption set payment_pass="" where id=1;'),
migrations.CreateModel( migrations.CreateModel(
name='ChequePayment', name='ChequePayment',
fields=[ fields=[
...@@ -60,6 +61,6 @@ class Migration(migrations.Migration): ...@@ -60,6 +61,6 @@ class Migration(migrations.Migration):
], ],
bases=(cotisations.payment_methods.mixins.PaymentMethodMixin, models.Model), bases=(cotisations.payment_methods.mixins.PaymentMethodMixin, models.Model),
), ),
migrations.RunPython(add_comnpay), # migrations.RunPython(add_comnpay),
migrations.RunPython(add_cheque), # migrations.RunPython(add_cheque),
] ]
# -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2018-07-05 13:40
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('preferences', '0035_optionaluser_allow_self_subscription'),
]
operations = [
migrations.RemoveField(
model_name='assooption',
name='payment_pass',
),
]
...@@ -8,7 +8,8 @@ from django.db import migrations ...@@ -8,7 +8,8 @@ from django.db import migrations
class Migration(migrations.Migration): class Migration(migrations.Migration):
dependencies = [ dependencies = [
('preferences', '0035_optionaluser_allow_self_subscription'), ('preferences', '0044_remove_payment_pass'),
('cotisations', '0032_chequepayment_comnpaypayment'),
] ]
operations = [ operations = [
...@@ -20,10 +21,6 @@ class Migration(migrations.Migration): ...@@ -20,10 +21,6 @@ class Migration(migrations.Migration):
model_name='assooption', model_name='assooption',
name='payment_id', name='payment_id',
), ),
migrations.RemoveField(
model_name='assooption',
name='payment_pass',
),
migrations.RemoveField( migrations.RemoveField(
model_name='optionaluser', model_name='optionaluser',
name='allow_self_subscription', name='allow_self_subscription',
......
...@@ -10,6 +10,7 @@ class Migration(migrations.Migration): ...@@ -10,6 +10,7 @@ class Migration(migrations.Migration):
dependencies = [ dependencies = [
('topologie', '0029_auto_20171002_0334'), ('topologie', '0029_auto_20171002_0334'),
('machines', '0049_vlan'),
] ]
operations = [ operations = [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment