Sign in
chromium
/
chromiumos
/
third_party
/
autotest
/
d2103cc4cedd79a8e3218028504cbc2df1d3d9f4
/
.
/
frontend
/
migrations
/
024_make_label_name_unique.py
blob: 146760472864e17fc2516e165aac5c0d8fdf3313 [
file
] [
log
] [
blame
]
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
)