int is not valid column type
int, as a column type in SQLAlchemy, is not valid identifier. Instead sqlalchemy.Integer should be used Change-Id: Ibf6d7696de43de07da45ef4d42a04e4e3b862060
This commit is contained in:
parent
9717149186
commit
180d30be8c
@ -1,6 +1,6 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
# Copyright 2015 Fujitsu Technology Solutions
|
# Copyright 2016 Fujitsu Technology Solutions
|
||||||
# (C) Copyright 2016 Hewlett Packard Enterprise Development LP
|
# (C) Copyright 2016 Hewlett Packard Enterprise Development LP
|
||||||
#
|
#
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
@ -21,7 +21,7 @@ from __future__ import print_function
|
|||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from sqlalchemy import Column, String, Enum, DateTime, ForeignKey, Table
|
from sqlalchemy import Column, String, Integer, Enum, DateTime, ForeignKey, Table
|
||||||
|
|
||||||
ALARM_STATES = ('UNDETERMINED', 'OK', 'ALARM')
|
ALARM_STATES = ('UNDETERMINED', 'OK', 'ALARM')
|
||||||
|
|
||||||
@ -42,7 +42,7 @@ def create_notification_method_model(metadata=None):
|
|||||||
Column('name', String(250)),
|
Column('name', String(250)),
|
||||||
Column('tenant_id', String(36)),
|
Column('tenant_id', String(36)),
|
||||||
Column('type', String(255)),
|
Column('type', String(255)),
|
||||||
Column('period', int),
|
Column('period', Integer),
|
||||||
Column('created_at', DateTime, default=lambda: datetime.utcnow()),
|
Column('created_at', DateTime, default=lambda: datetime.utcnow()),
|
||||||
Column('updated_at', DateTime, onupdate=lambda: datetime.utcnow()))
|
Column('updated_at', DateTime, onupdate=lambda: datetime.utcnow()))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user