Skip to content

Revise 'sqlite3:' URL handling for smoother upgrades#14569

Merged
rafaelfranca merged 2 commits into
rails:masterfrom
matthewd:sqlite_relative_deprecated
Apr 3, 2014
Merged

Revise 'sqlite3:' URL handling for smoother upgrades#14569
rafaelfranca merged 2 commits into
rails:masterfrom
matthewd:sqlite_relative_deprecated

Conversation

@matthewd

@matthewd matthewd commented Apr 2, 2014

Copy link
Copy Markdown
Member

@rafaelfranca as discussed. I think. 😄

matthewd added 2 commits April 3, 2014 01:30
Restore the 4.0 behaviour for 'sqlite3:///', but deprecate it. We'll
change to the absolute-path interpretation in 4.2.

The current "correct" spellings for in-memory, relative, and absolute
URLs, respectively, are:

    sqlite3::memory:
    sqlite3:relative/path
    sqlite3:/full/path

Substantially reverses/defers fbb79b5.
Uncovered by @guilleiguaran while investigating rails#14495, though that
sounds like a different issue.
That which was now relative is now absolute.
Comment thread activerecord/CHANGELOG.md

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was the deprecation warning implemented? I could not find in the diff

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For anyone else reading this:

The PR contains two commits; the first introduces the deprecation while maintaining the historical behaviour, the second then removes the deprecation and changes to the new/desirable behaviour. Obviously, only the first one should be backported.

@rafaelfranca rafaelfranca added this to the 4.1.0 milestone Apr 2, 2014
rafaelfranca added a commit that referenced this pull request Apr 3, 2014
Revise 'sqlite3:' URL handling for smoother upgrades

Conflicts:
	activerecord/CHANGELOG.md
@rafaelfranca rafaelfranca merged commit 0a99fdd into rails:master Apr 3, 2014
@matthewd matthewd deleted the sqlite_relative_deprecated branch August 22, 2015 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants