-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
stop using spatial_adapter, debug sqlite setup to simplify installation #433
Comments
OK, this seems ready to go, pending testing by other devs, or on Cloud9: #438. Closing and addressing any followup in that PR. |
@jywarren Shouldn't we keep spatial_adapter for the time being ? As you mentioned the geometry column in content_field_bbox table uses it. So migrations won't continue. It gives error with |
Were you running rake db:migrate from a blank database? It should only be Note that I dropped the geometry containing table in the sqlite merge. So @jywarren https://github.com/jywarren Shouldn't we keep spatial_adapter — |
@jywarren I did start a new database from scratch in mysql. What I did was
|
Instead of those two steps, you should run "rake db:setup". It's not usual This makes sense because we did not remove the geometry column from the
|
and to enable use with sqlite databases
Read up: https://github.com/pdeffendol/spatial_adapter
But we only use it on the
geometry
column on this line of our schema:https://github.com/publiclab/plots2/tree/master/db/schema.rb#L52
Looking at whether we can just change that to another column type.
We should do this as a new migration instead of changing an old one; checking about removing
rake db:migrate
from the README.md as a result: bc4bb1dnid
is used twice by line 43 of the schema.rb. We should rename the indices uniquely and see if that works.SQLite3::ConstraintException: NOT NULL constraint failed: node_revisions.teaser
- remove not null?ActiveRecord::StatementInvalid (SQLite3::BusyException: database is locked: INSERT INTO "rsessions" ("created_at", "data", "session_id", "updated_at") VALUES (?, ?, ?, ?)):
hmmmbundle install --without production
will actually persist in a.bundle
file or something...ActiveRecord::StatementInvalid: SQLite3::SQLException: no such column: true: SELECT "tag_selections".* FROM "tag_selections" WHERE (tid IN (2,3) AND following = true)
(maybe a true vs "true" issue)Also: remember to squash the commits!
The text was updated successfully, but these errors were encountered: