Labs/Jetpack/FlightDeck/Docs/SDK: Difference between revisions

m
Line 22: Line 22:


#Create jetpack_sdk table, by running the <pre>./scripts/syncdb.sh</pre>
#Create jetpack_sdk table, by running the <pre>./scripts/syncdb.sh</pre>
#Create first SDK instance <pre>INSERT INTO jetpack_sdk VALUES (1,'0.5',1,'jetpack-sdk');</pre> sdk_versions directory will be created
#Create first SDK instance <pre>INSERT INTO jetpack_sdk VALUES (1,'0.5',1,'jetpack-sdk');</pre>
#Create jetpack_packagerevision.sdk_id field <pre>ALTER TABLE jetpack_packagerevision ADD sdk_id INT;</pre>
#Create jetpack_packagerevision.sdk_id field <pre>ALTER TABLE jetpack_packagerevision ADD sdk_id INT;</pre>
#Set existing SDK version as the chosen one for existing Add-ons <pre>UPDATE jetpack_packagerevision SET sdk_id=1 WHERE package_id IN (SELECT id FROM jetpack_package WHERE type='a');</pre>
#Set existing SDK version as the chosen one for existing Add-ons <pre>UPDATE jetpack_packagerevision SET sdk_id=1 WHERE package_id IN (SELECT id FROM jetpack_package WHERE type='a');</pre>
Confirmed users
514

edits