-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Room migration using .sql files #13
Comments
hello @spurdow. what do you mean by "pulling sql files"? |
Hello @MatrixDev - I mean instead migrating by adding migration codes, Is it possible to store .sql files in asset/ or any configurable folder in AS and then the lib will automatically pull that depending on the db schema version like 1.sql , 2.sql so on and so forth. Similar to the then ActiveAndroid https://github.com/pardom-zz/ActiveAndroid which is amazing. |
@spurdow, glad you've liked this library. For example instead of writing: @FieldMigrationRule(version1 = 3, version2 = 4, table = "Object1Dbo", field = "intValRenamed")
fun migrate_3_4_Object1Dbo_intVal(): String {
return "`Object1Dbo`.`intVal`"
} You'll have ALTER TABLE Items ADD COLUMN color INTEGER; |
@MatrixDev |
Hello @MatrixDev -
Would it be possible to have a support to pull .sql files to use as migration?
Thanks
The text was updated successfully, but these errors were encountered: