Merge "Correctly inherit __table_args__ from parent class"
This commit is contained in:
		@@ -43,7 +43,8 @@ class ExtraDhcpOpt(model_base.BASEV2, models_v2.HasId):
 | 
				
			|||||||
    opt_value = sa.Column(sa.String(255), nullable=False)
 | 
					    opt_value = sa.Column(sa.String(255), nullable=False)
 | 
				
			||||||
    __table_args__ = (sa.UniqueConstraint('port_id',
 | 
					    __table_args__ = (sa.UniqueConstraint('port_id',
 | 
				
			||||||
                                          'opt_name',
 | 
					                                          'opt_name',
 | 
				
			||||||
                                          name='uidx_portid_optname'),)
 | 
					                                          name='uidx_portid_optname'),
 | 
				
			||||||
 | 
					                      model_base.BASEV2.__table_args__,)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # Add a relationship to the Port model in order to instruct SQLAlchemy to
 | 
					    # Add a relationship to the Port model in order to instruct SQLAlchemy to
 | 
				
			||||||
    # eagerly load extra_dhcp_opts bindings
 | 
					    # eagerly load extra_dhcp_opts bindings
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -93,6 +93,7 @@ class TunnelEndpoint(model_base.BASEV2):
 | 
				
			|||||||
    __tablename__ = 'ovs_tunnel_endpoints'
 | 
					    __tablename__ = 'ovs_tunnel_endpoints'
 | 
				
			||||||
    __table_args__ = (
 | 
					    __table_args__ = (
 | 
				
			||||||
        UniqueConstraint('id', name='uniq_ovs_tunnel_endpoints0id'),
 | 
					        UniqueConstraint('id', name='uniq_ovs_tunnel_endpoints0id'),
 | 
				
			||||||
 | 
					        model_base.BASEV2.__table_args__,
 | 
				
			||||||
    )
 | 
					    )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    ip_address = Column(String(64), primary_key=True)
 | 
					    ip_address = Column(String(64), primary_key=True)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user