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

Document SQLite idempotent script limitations #2682

Merged
merged 1 commit into from
Sep 28, 2020

Conversation

bricelam
Copy link
Contributor

Fixes #2636

@bricelam bricelam requested a review from a team September 24, 2020 20:48
@bricelam
Copy link
Contributor Author

bricelam commented Sep 24, 2020

I thought about mentioning ways to generate an elaborate bash script with individual migration scripts, but then I figured, "Meh, it's just SQLite." (and bundles will be better anyway)

if [[ $(sqlite3 my.db "SELECT COUNT(*) FROM __EFMigrationsHistory WHERE MigrationId = '00000000000000_InitialCreate'") != 0 ]]; then
    sqlite3 my.db ".read 00000000000000_InitialCreate.sql"
fi

@smitpatel
Copy link
Member

Note to shay, github action build check is not running when a PR from fork comes.

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.

Document limitation preventing idempotent scripts on SQLite
2 participants