![]() ![]() And with this establishment, the focus has once again shifted on the incorporation of the platform in the app development process, especially when entrepreneurs are looking to build cross-platform applications. Let’s place the config file we created earlier in /app/db as well and name it db-upgrade.json, so we will just work within the same folder.React Native has established itself as a prime choice of startups and establishments looking for a mode to enter the app domain in a cost and time-efficient manner. Let’s assume we will work off a file called database.js located at /app/db. The example above indicates your new intended version of the db is version 5, and the logic here will be that the scripts in the upgrades field will run from the version of the app’s db up to the script that updates your db to version 5. "to_v5": table_name4 column_1 data_type PRIMARY KEY, column_2 data_type NOT NULL, column_3 data_type DEFAULT 0 "]] "to_v4": table_name3 column_1 data_type PRIMARY KEY, column_2 data_type NOT NULL, column_3 data_type DEFAULT 0 "]], "to_v3": table_name2 column_1 data_type PRIMARY KEY, column_2 data_type NOT NULL, column_3 data_type DEFAULT 0 "]], "to_v2": table_name1 column_1 data_type PRIMARY KEY, column_2 data_type NOT NULL, column_3 data_type DEFAULT 0 "]], It will also hold the upgrade scripts to run for each version of the app. This file will be in charge of storing the database version you’d like your app to upgrade to.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |