forked from seiferta/eMonitor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update alarmtype events and fix renamig issue for alarm-events in tri…
…gger definition - table definition for monitorlayout updated - database update script added - add option for image cropping of input alarm image
- Loading branch information
Showing
15 changed files
with
882 additions
and
755 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
""" | ||
1.4 | ||
Revision ID: fcd72b56ad35 | ||
Revises: fcd72b56ad35 | ||
Create Date: 2016-07-30 21:01:23.824000 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = 'fcd72b56ad35' | ||
down_revision = '20c921506336' | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
def upgrade(): | ||
op.create_table('monitorlayouts_tmp', sa.Column('id', sa.INTEGER(), nullable=False), | ||
sa.Column('mid', sa.INTEGER(), nullable=False), | ||
sa.Column('trigger', sa.TEXT()), | ||
sa.Column('layout', sa.TEXT()), | ||
sa.Column('theme', sa.VARCHAR(30)), | ||
sa.Column('mintime', sa.INTEGER()), | ||
sa.Column('maxtime', sa.INTEGER()), | ||
sa.Column('nextid', sa.INTEGER()), | ||
sa.PrimaryKeyConstraint('id'), | ||
sa.ForeignKeyConstraint(['mid'], ['monitors.id'])) | ||
op.execute('insert into monitorlayouts_tmp select id, mid, monitorlayouts.trigger, layout, theme, mintime, maxtime, nextid from monitorlayouts;') | ||
op.drop_table('monitorlayouts') | ||
op.rename_table('monitorlayouts_tmp', 'monitorlayouts') | ||
|
||
|
||
def downgrade(): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.