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:
Tomasz Trębski 2016-09-02 06:50:32 +02:00
parent 9717149186
commit 180d30be8c
1 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright 2015 Fujitsu Technology Solutions
# Copyright 2016 Fujitsu Technology Solutions
# (C) Copyright 2016 Hewlett Packard Enterprise Development LP
#
# 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 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')
@ -42,7 +42,7 @@ def create_notification_method_model(metadata=None):
Column('name', String(250)),
Column('tenant_id', String(36)),
Column('type', String(255)),
Column('period', int),
Column('period', Integer),
Column('created_at', DateTime, default=lambda: datetime.utcnow()),
Column('updated_at', DateTime, onupdate=lambda: datetime.utcnow()))