From a03575b59ba34f7b991ff415b3dc5d1f1aeafb71 Mon Sep 17 00:00:00 2001 From: Emmanuel Robert Ssebaggala Date: Mon, 25 Mar 2019 11:41:28 +0300 Subject: [PATCH] Change power and location fields from integers Latitude, longitude, and power table columns where integers before. --- .../0e0ceb9a3832_create_live_network_gsm_external_cells_.py | 1 + .../1faf6c2610bb_create_live_network_umts_cells_data_.py | 2 +- .../5b8d91271e45_create_table_for_4g_external_cells.py | 4 +++- .../7ffc4e23252c_create_live_network_umts_external_cells_.py | 5 +++-- .../920b08e9f6ec_create_live_network_gsm_cells_data.py | 2 +- 5 files changed, 9 insertions(+), 5 deletions(-) diff --git a/alembic/versions/0e0ceb9a3832_create_live_network_gsm_external_cells_.py b/alembic/versions/0e0ceb9a3832_create_live_network_gsm_external_cells_.py index 7c4930e..8b168c5 100644 --- a/alembic/versions/0e0ceb9a3832_create_live_network_gsm_external_cells_.py +++ b/alembic/versions/0e0ceb9a3832_create_live_network_gsm_external_cells_.py @@ -31,6 +31,7 @@ def upgrade(): sa.Column('bcc', sa.Integer,), sa.Column('ci', sa.Integer,), sa.Column('rac', sa.Integer, ), + sa.Column('sac', sa.Integer, ), sa.Column('modified_by', sa.Integer), sa.Column('added_by', sa.Integer), sa.Column('date_added', sa.TIMESTAMP, default=sa.func.now(), onupdate=sa.func.now()), diff --git a/alembic/versions/1faf6c2610bb_create_live_network_umts_cells_data_.py b/alembic/versions/1faf6c2610bb_create_live_network_umts_cells_data_.py index 203fae0..8977e14 100644 --- a/alembic/versions/1faf6c2610bb_create_live_network_umts_cells_data_.py +++ b/alembic/versions/1faf6c2610bb_create_live_network_umts_cells_data_.py @@ -34,7 +34,7 @@ def upgrade(): sa.Column('lac', sa.Integer,), sa.Column('maximum_transmission_power', sa.Double,), sa.Column('secondary_sch_power', sa.Double, ), - sa.Column('azimuth', sa.Integer,), + sa.Column('azimuth', sa.Float,), sa.Column('height', sa.Integer,), sa.Column('primary_sch_power', sa.Integer,), sa.Column('rac', sa.Integer,), diff --git a/alembic/versions/5b8d91271e45_create_table_for_4g_external_cells.py b/alembic/versions/5b8d91271e45_create_table_for_4g_external_cells.py index fea3064..96eb13e 100644 --- a/alembic/versions/5b8d91271e45_create_table_for_4g_external_cells.py +++ b/alembic/versions/5b8d91271e45_create_table_for_4g_external_cells.py @@ -25,12 +25,14 @@ def upgrade(): sa.Column('cell_pk', sa.Integer), sa.Column('node_pk', sa.Integer,), sa.Column('dl_earfcn', sa.Integer,), + sa.Column('ul_earfcn', sa.Integer, ), sa.Column('mnc', sa.Integer,), sa.Column('mcc', sa.Integer, ), - sa.Column('localCellId', sa.Integer,), + sa.Column('local_cellid', sa.Integer,), sa.Column('pci', sa.Integer, ), sa.Column('tac', sa.Integer, ), sa.Column('ci', sa.Integer, ), + sa.Column('enodeb_id', sa.Integer, ), sa.Column('modified_by', sa.Integer), sa.Column('added_by', sa.Integer), sa.Column('date_added', sa.TIMESTAMP, default=sa.func.now(), onupdate=sa.func.now()), diff --git a/alembic/versions/7ffc4e23252c_create_live_network_umts_external_cells_.py b/alembic/versions/7ffc4e23252c_create_live_network_umts_external_cells_.py index 2c741d4..3ca3186 100644 --- a/alembic/versions/7ffc4e23252c_create_live_network_umts_external_cells_.py +++ b/alembic/versions/7ffc4e23252c_create_live_network_umts_external_cells_.py @@ -25,8 +25,8 @@ def upgrade(): sa.Column('node_pk', sa.Integer), sa.Column('rac', sa.Integer), sa.Column('lac', sa.Integer), - sa.Column('primary_cpich_power', sa.Integer), - sa.Column('secondary_cpich_power', sa.Integer), + sa.Column('primary_cpich_power', sa.Double), + sa.Column('secondary_cpich_power', sa.Double), sa.Column('uarfcn_dl', sa.Integer), sa.Column('uarfcn_ul', sa.Integer), sa.Column('mnc', sa.Integer), @@ -35,6 +35,7 @@ def upgrade(): sa.Column('ci', sa.Integer), sa.Column('rncid', sa.Integer), sa.Column('psc', sa.Integer), + sa.Column('sac', sa.Integer), sa.Column('modified_by', sa.Integer), sa.Column('added_by', sa.Integer), sa.Column('date_added', sa.TIMESTAMP, default=sa.func.now(), onupdate=sa.func.now()), diff --git a/alembic/versions/920b08e9f6ec_create_live_network_gsm_cells_data.py b/alembic/versions/920b08e9f6ec_create_live_network_gsm_cells_data.py index 61d6fab..364c136 100644 --- a/alembic/versions/920b08e9f6ec_create_live_network_gsm_cells_data.py +++ b/alembic/versions/920b08e9f6ec_create_live_network_gsm_cells_data.py @@ -31,7 +31,7 @@ def upgrade(): sa.Column('latitude', sa.Float,), sa.Column('longitude', sa.Float,), sa.Column('cgi', sa.String(200),), - sa.Column('azimuth', sa.Integer,), + sa.Column('azimuth', sa.Float,), sa.Column('height', sa.Integer,), sa.Column('mechanical_tilt', sa.Integer,), sa.Column('electrical_tilt', sa.Integer,),