Skip to content
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

bugfix and set default sql parser #552

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

bugfix and set default sql parser #552

wants to merge 2 commits into from

Conversation

sunnycamel
Copy link

In doc it says db tables is create and migrate by execute the
sql scripts in assets directory.
In fact in code the db table is create by the utilize the info of
annotated model class.
SQLiteOpenHelper will set db version after
execute the onCreate, this will case the onCreate got the wrong db
version, and some migration sql script will never be executed.
I correct this by the first commit.

The second commit will set the default sql parser to "delimited". This will support multi-line sql script.

In doc db tables is create and migrate by execute the
sql scripts in assets directory.

In fact the db table is create by the utilize the info of
annotated model class. SQLiteOpenHelper will set db version after
execute the onCreate, this will case the onCreate got the wrong db
version, and some migration sql script will never be executed.

Signed-off-by: Peng Sun <[email protected]>
this parser will support multi-line sql.

Signed-off-by: Peng Sun <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant