Sign in
cos
/
mirrors
/
cros
/
chromiumos
/
third_party
/
autotest
/
refs/heads/stabilize.59781.98.B
/
.
/
frontend
/
migrations
/
085_lease_hosts.py
blob: fd277bb4a0835bfa53981dc5ccc4ebae2f19567e [
file
] [
log
] [
blame
] [
edit
]
UP_SQL
=
"""
ALTER TABLE afe_hosts ADD COLUMN leased TINYINT(1) NOT NULL DEFAULT '1';
CREATE INDEX leased_hosts ON afe_hosts (leased, locked);
"""
DOWN_SQL
=
"""
DROP INDEX leased_hosts ON afe_hosts;
ALTER TABLE afe_hosts DROP COLUMN leased;
"""