Create migration
This commit is contained in:
parent
49a9fdd842
commit
87a154bd0a
1 changed files with 22 additions and 0 deletions
22
hosting/migrations/0060_update_DE_vat_covid-19.py
Normal file
22
hosting/migrations/0060_update_DE_vat_covid-19.py
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# Generated by Django 1.9.4 on 2020-06-30 19:12
|
||||||
|
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
from django.db import migrations
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('hosting', '0059_stripetaxrate'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.RunSQL(
|
||||||
|
"update hosting_vatrates set stop_date = '2020-06-30' where territory_codes = 'DE' and rate = '0.19'",
|
||||||
|
"insert into hosting_vatrates (start_date, stop_date, territory_codes, currency_code, rate, rate_type, description) values ('2020-07-01',null,'DE', 'EUR', '0.16', 'standard', 'Germany (member state) standard VAT rate - COVID 19 reduced rate')",
|
||||||
|
"update hosting_stripetaxrate set description = 'VAT for DE pre-COVID-19' where description = 'VAT for DE'"
|
||||||
|
|
||||||
|
)
|
||||||
|
]
|
Loading…
Reference in a new issue