nit: remove downgrade methods and add release note
Change-Id: I381a15e233683e2a37c90a4cb443774479265f69
This commit is contained in:
parent
f97df023b2
commit
a51a9f9465
@ -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))
|
||||
|
@ -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))
|
||||
|
@ -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.
|
Loading…
Reference in New Issue
Block a user