Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new maintainer of resources implementation
- Loading branch information
Showing
292 changed files
with
14,819 additions
and
39,660 deletions.
There are no files selected for viewing
Empty file.
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
"""alter db | ||
Revision ID: 1e661947fa33 | ||
Revises: 8ea58c1b7416 | ||
Create Date: 2016-05-14 20:08:11.282984 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '1e661947fa33' | ||
down_revision = '8ea58c1b7416' | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
def upgrade(): | ||
### commands auto generated by Alembic - please adjust! ### | ||
pass | ||
### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
### commands auto generated by Alembic - please adjust! ### | ||
pass | ||
### end Alembic commands ### |
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,26 @@ | ||
"""alter db | ||
Revision ID: 5984ec75fe6f | ||
Revises: d6019e611353 | ||
Create Date: 2016-05-09 11:48:51.032917 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '5984ec75fe6f' | ||
down_revision = 'd6019e611353' | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
def upgrade(): | ||
### commands auto generated by Alembic - please adjust! ### | ||
pass | ||
### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
### commands auto generated by Alembic - please adjust! ### | ||
pass | ||
### end Alembic commands ### |
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,36 @@ | ||
"""alter db | ||
Revision ID: 8ea58c1b7416 | ||
Revises: 5984ec75fe6f | ||
Create Date: 2016-05-14 12:10:03.820778 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '8ea58c1b7416' | ||
down_revision = '5984ec75fe6f' | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
def upgrade(): | ||
### commands auto generated by Alembic - please adjust! ### | ||
op.create_table('dismissal', | ||
sa.Column('id', sa.Integer(), nullable=False), | ||
sa.Column('resource_id', sa.Integer(), nullable=False), | ||
sa.Column('date', sa.Date(), nullable=True), | ||
sa.Column('employee_id', sa.Integer(), nullable=False), | ||
sa.ForeignKeyConstraint(['employee_id'], ['employee.id'], name='fk_employee_id_appointment', onupdate='cascade', ondelete='restrict'), | ||
sa.ForeignKeyConstraint(['resource_id'], ['resource.id'], name='fk_resource_id_dismissal', onupdate='cascade', ondelete='restrict'), | ||
sa.PrimaryKeyConstraint('id') | ||
) | ||
op.drop_column(u'employee', 'dismissal_date') | ||
### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
### commands auto generated by Alembic - please adjust! ### | ||
op.add_column(u'employee', sa.Column('dismissal_date', sa.DATE(), autoincrement=False, nullable=True)) | ||
op.drop_table('dismissal') | ||
### end Alembic commands ### |
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,28 @@ | ||
"""alter db | ||
Revision ID: bdbc18f749f6 | ||
Revises: 1e661947fa33 | ||
Create Date: 2016-05-15 17:39:27.590882 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = 'bdbc18f749f6' | ||
down_revision = '1e661947fa33' | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
def upgrade(): | ||
### commands auto generated by Alembic - please adjust! ### | ||
op.drop_constraint(u'fk_employee_id_task', 'task', type_='foreignkey') | ||
op.drop_column('task', 'employee_id') | ||
### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
### commands auto generated by Alembic - please adjust! ### | ||
op.add_column('task', sa.Column('employee_id', sa.INTEGER(), autoincrement=False, nullable=False)) | ||
op.create_foreign_key(u'fk_employee_id_task', 'task', 'employee', ['employee_id'], ['id'], onupdate=u'CASCADE', ondelete=u'RESTRICT') | ||
### end Alembic commands ### |
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,40 @@ | ||
"""alter db | ||
Revision ID: d6019e611353 | ||
Revises: None | ||
Create Date: 2016-05-09 11:38:02.281703 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = 'd6019e611353' | ||
down_revision = None | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
def upgrade(): | ||
### commands auto generated by Alembic - please adjust! ### | ||
op.drop_constraint(u'fk_contract_id_caluclation', 'calculation', type_='foreignkey') | ||
op.create_foreign_key('fk_contract_id_caluclation', 'calculation', 'contract', ['contract_id'], ['id'], onupdate='cascade', ondelete='restrict') | ||
op.drop_constraint(u'fk_photo_upload_id_employee', 'employee', type_='foreignkey') | ||
op.create_foreign_key('fk_photo_upload_id_employee', 'employee', 'upload', ['photo_upload_id'], ['id'], onupdate='cascade', ondelete='restrict') | ||
op.drop_constraint(u'fk_maintainer_id_resource', 'resource', type_='foreignkey') | ||
op.drop_constraint(u'fk_structure_id_resource', 'resource', type_='foreignkey') | ||
op.create_foreign_key('fk_maintainer_id_resource', 'resource', 'employee', ['maintainer_id'], ['id'], onupdate='cascade', ondelete='restrict', use_alter=True) | ||
op.drop_column('resource', 'structure_id') | ||
### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
### commands auto generated by Alembic - please adjust! ### | ||
op.add_column('resource', sa.Column('structure_id', sa.INTEGER(), autoincrement=False, nullable=False)) | ||
op.drop_constraint('fk_maintainer_id_resource', 'resource', type_='foreignkey') | ||
op.create_foreign_key(u'fk_structure_id_resource', 'resource', 'structure', ['structure_id'], ['id'], onupdate=u'CASCADE', ondelete=u'RESTRICT') | ||
op.create_foreign_key(u'fk_maintainer_id_resource', 'resource', 'employee', ['maintainer_id'], ['id']) | ||
op.drop_constraint('fk_photo_upload_id_employee', 'employee', type_='foreignkey') | ||
op.create_foreign_key(u'fk_photo_upload_id_employee', 'employee', 'upload', ['photo_upload_id'], ['id']) | ||
op.drop_constraint('fk_contract_id_caluclation', 'calculation', type_='foreignkey') | ||
op.create_foreign_key(u'fk_contract_id_caluclation', 'calculation', 'contract', ['contract_id'], ['id']) | ||
### end Alembic commands ### |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
REDIS0006�ܳC�Z��V |
Oops, something went wrong.