Sign in
cos
/
mirrors
/
cros
/
chromiumos
/
third_party
/
autotest
/
refs/heads/release-R26-3701.B
/
.
/
frontend
/
migrations
/
024_make_label_name_unique.py
blob: 146760472864e17fc2516e165aac5c0d8fdf3313 [
file
] [
log
] [
blame
] [
edit
]
UP_SQL
=
"""
ALTER TABLE labels MODIFY name VARCHAR(255) UNIQUE;
"""
DOWN_SQL
=
"""
ALTER TABLE labels MODIFY name VARCHAR(255);
"""
def
migrate_up
(
manager
):
manager
.
execute_script
(
UP_SQL
)
def
migrate_down
(
manager
):
manager
.
execute_script
(
DOWN_SQL
)