Homec4science

Schema upgrade script.

Authored by tuomaspelkonen <tuomas.pelkonen@fb.com> on Apr 8 2011, 01:55.

Description

Schema upgrade script.

Summary:
Created a script the runs all the necessary patches for db schema.
Stores information in the db about the latest patch that was applied.

Test Plan:
Created two test files '024.test.sql' and '023.test.sql' in this order.
'023' creates a database and '024' creates a table in this db. First ran
'./upgrade_schema.php 23' and made sure that patches were applied in order.
Then ran './upgrade_schema.php' to make sure db was up-to-date. Checked
manually from the db that the database and table exists.

Reviewed By: epriestley
Reviewers: epriestley
CC: jungejason, epriestley, tuomaspelkonen
Differential Revision: 115

Details

Committed
tuomaspelkonen <tuomas.pelkonen@fb.com>Apr 8 2011, 22:22
Pushed
aubortJan 31 2017, 17:16
Parents
rPH540c2ec3df4b: Add /status/
Branches
Unknown
Tags
Unknown

Event Timeline

tuomaspelkonen <tuomas.pelkonen@fb.com> committed rPH4f6bac95e954: Schema upgrade script. (authored by tuomaspelkonen <tuomas.pelkonen@fb.com>).Apr 8 2011, 22:22