This repository has been archived by the owner on May 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handled the problems with NFC cards not working independently across …
…different events.
- Loading branch information
1 parent
f109030
commit d79f5a3
Showing
7 changed files
with
111 additions
and
25 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,26 @@ | ||
"""Removed nfc_id column | ||
Revision ID: 4cdaf9d17f49 | ||
Revises: 54f5351fbf9e | ||
Create Date: 2013-07-24 00:18:53.214415 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '4cdaf9d17f49' | ||
down_revision = '54f5351fbf9e' | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
def upgrade(): | ||
### commands auto generated by Alembic - please adjust! ### | ||
op.drop_column('participant', u'nfc_id') | ||
### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
### commands auto generated by Alembic - please adjust! ### | ||
op.add_column('participant', sa.Column(u'nfc_id', sa.VARCHAR(length=80), nullable=True)) | ||
### 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 @@ | ||
"""Unique constraint is now on nfc_id+event | ||
Revision ID: 4d30ec36e917 | ||
Revises: a48e1f6838c | ||
Create Date: 2013-07-24 00:22:01.199548 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '4d30ec36e917' | ||
down_revision = 'a48e1f6838c' | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
def upgrade(): | ||
### commands auto generated by Alembic - please adjust! ### | ||
op.create_unique_constraint("uq_participant_nfc_id", "participant", ["event_id", "nfc_id"]) | ||
### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
### commands auto generated by Alembic - please adjust! ### | ||
op.drop_constraint("uq_participant_nfc_id", "participant") | ||
### 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 @@ | ||
"""Reintroduced nfc_id column | ||
Revision ID: a48e1f6838c | ||
Revises: 4cdaf9d17f49 | ||
Create Date: 2013-07-24 00:19:56.136286 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = 'a48e1f6838c' | ||
down_revision = '4cdaf9d17f49' | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
def upgrade(): | ||
### commands auto generated by Alembic - please adjust! ### | ||
op.add_column('participant', sa.Column('nfc_id', sa.Unicode(length=80), nullable=True)) | ||
### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
### commands auto generated by Alembic - please adjust! ### | ||
op.drop_column('participant', 'nfc_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
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