Skip to content

Instantly share code, notes, and snippets.

@juliancadi
Created November 5, 2019 22:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juliancadi/6df27f3d5a4abf6a5684e2426be60965 to your computer and use it in GitHub Desktop.
Save juliancadi/6df27f3d5a4abf6a5684e2426be60965 to your computer and use it in GitHub Desktop.
Room migration
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