Created
November 5, 2019 22:52
-
-
Save juliancadi/6df27f3d5a4abf6a5684e2426be60965 to your computer and use it in GitHub Desktop.
Room migration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
database.execSQL("DROP TABLE ${AudioItemEntity.TABLE_NAME}") | |
database.execSQL("CREATE TABLE IF NOT EXISTS ${AudioItemEntity.TABLE_NAME} (`audioItemId` INTEGER PRIMARY KEY NOT NULL, `audioChannelId` INTEGER NOT NULL, `audioId` TEXT NOT NULL, `audioDescription` TEXT NOT NULL, `duration` INTEGER NOT NULL, `volume` INTEGER NOT NULL, `fileName` TEXT NOT NULL, `index` INTEGER NOT NULL)") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment