[autotest] Add afe_stable_versions table to store stable versions for each board.

As a sample setup:
+----+---------+----------------------------+
| id | board   | version                    |
+----+---------+----------------------------+
|  1 | lumpy   | R41-6531.0.0               |
|  2 | DEFAULT | R41-6550.0.0               |
+----+---------+----------------------------+

For lumpy, the stable build is stable_build_pattern % (lumpy, 'R41-6531.0.0').
For any other board, the stable build is
stable_build_pattern % (board, 'R41-6550.0.0')

BUG=chromium:436656
TEST=local db:
database/migrate.py sync
database/migrate.py sync 97

Change-Id: I94fc61e1ca18ab1cafd77bebd710a6af40f6c15e
Reviewed-on: https://chromium-review.googlesource.com/236414
Reviewed-by: Dan Shi <dshi@chromium.org>
Commit-Queue: Dan Shi <dshi@chromium.org>
Trybot-Ready: Dan Shi <dshi@chromium.org>
Tested-by: Dan Shi <dshi@chromium.org>
1 file changed