nit: remove downgrade methods and add release note

Change-Id: I381a15e233683e2a37c90a4cb443774479265f69
This commit is contained in:
Graham Hayes 2018-11-07 16:28:19 +00:00
parent f97df023b2
commit a51a9f9465
No known key found for this signature in database
GPG Key ID: 1B263DC59F4AEFD5
3 changed files with 6 additions and 30 deletions

View File

@ -27,18 +27,3 @@ def upgrade(migrate_engine):
records_table = Table('recordsets', meta, autoload=True)
records_table.columns.type.alter(name='type', type=Enum(*RECORD_TYPES))
def downgrade(migrate_engine):
meta.bind = migrate_engine
RECORD_TYPES = ['A', 'AAAA', 'CNAME', 'MX', 'SRV', 'TXT', 'SPF', 'NS',
'PTR', 'SSHFP', 'SOA']
records_table = Table('recordsets', meta, autoload=True)
# Delete all NAPTR records
records_table.filter_by(name='type', type='NAPTR').delete()
# Remove CAA from the ENUM
records_table.columns.type.alter(type=Enum(*RECORD_TYPES))

View File

@ -27,18 +27,3 @@ def upgrade(migrate_engine):
records_table = Table('recordsets', meta, autoload=True)
records_table.columns.type.alter(name='type', type=Enum(*RECORD_TYPES))
def downgrade(migrate_engine):
meta.bind = migrate_engine
RECORD_TYPES = ['A', 'AAAA', 'CNAME', 'MX', 'SRV', 'TXT', 'SPF', 'NS',
'PTR', 'SSHFP', 'SOA', 'NAPTR']
records_table = Table('recordsets', meta, autoload=True)
# Delete all CAA records
records_table.filter_by(name='type', type='CAA').delete()
# Remove CAA from the ENUM
records_table.columns.type.alter(type=Enum(*RECORD_TYPES))

View File

@ -0,0 +1,6 @@
---
features:
- |
CAA and NAPTR recordset types have been added. All users should be able to use these types
from the API and openstack client. These can be disabled (like other record types) by
setting the `[DEFAULT].supported-record-type` config variable in all designate services.