Displaying 20 results from an estimated 20000 matches similar to: "[OT] Updating a production sqlite database"
2005 May 19
5
[OT] Sqlite2 question
So, under Sqlite2, if I want to update a database''s schema, I have to
dump the DB, modify the table''s structure, then go and modify EVERY
insert statement.
The insert statements look like (from memory):
INSERT INTO my_table VALUES (''some_id'', ''some_val'', '''', '''', '''',
''some_other
2011 Apr 19
5
Check that my sqlite database populated
Hello guys,
I''ve made a very simple application following the footsteps of
http://guides.rubyonrails.org/getting_started.html.
I managed to insert my objects (i checked the existence of inserted
objects through the rails console with a simple Foo.all ) but if I run
sqlite3 from command line and then run .databases I can''t see any
database created.
I thought I could see the
2006 Apr 11
0
Unit test is failing when I am using SQLite
Hi,
There seems to be an issue with SQLite adapter. Any idea what is causing
it?
document_test.rb contains default scaffold and works fine with MySQL but
fails with SQLite. Other unit tests work fine with either DB.
Sergei Serdyuk
Red Leaf Software LLC
http://www.redleafsoft.com
document_test.rb:
require File.dirname(__FILE__) + ''/../test_helper''
class DocumentTest <
2012 May 15
5
setting up the SQLite database
I know this isn''t Python, but I''d like to get a view on the ''one
obvious'' way to set up an SQLite (or other) database and its location
per-app. I''ve got a bit lost with the Camping 2 changes and various
code snippets I have kicking around.
1.
is it best to set up the DB creation/connection:
1.1
at the end of the app
2011 Aug 09
5
Sqlite 3 install error on Heroku, Rails 3.1
Hello Rails people.
I tried to push a Rails 3.1 app ( created using cedar stack) to Heroku
and I encountered the following error
Installing sqlite3 (1.3.4) with native extensions Unfortunately, a
fatal error has occurred. Please report this error to the Bundler
issue tracker at https://github.com/carlhuda/bundler/issues so that we
can fix it. Thanks!
2005 Dec 23
2
SQLite in-memory
I left ":memory:" in database.yml for testing and the most simple
tests in the Agile book do not work (see trace below for test_truth).
Since that''s what comes with the distributed database.yml I suppose
it''s me doing something wrong.
Did someone get SQLite ":memory:" working? How does it grab the schema?
-- fxn
% rake test_units
(in
2010 Dec 22
5
rvm, rails and sqlite
i need to use old version of ruby (1.8.7) and older version of rails
(2.1.0) so i decided to use rvm. however since i''m somewhat new to ruby
and rails i''m having issues. i created a gemset with rvm for my project,
installed rails 2.1.0 into it. after that i created a project and a
scaffolding for it. however i bumped onto an issue with sqlite3 (or
sqlite3-ruby). it seems to me
2005 Dec 22
13
in-memory SQLite for testing
I am following the rails book, and arrived to the section about
testing. The test database is configured as:
test:
adapter: sqlite3
database: ":memory:"
and I get this error with the simple product test:
% ruby test/unit/product_test.rb
Loaded suite test/unit/product_test
Started
E/usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.1.0/lib/sqlite3/
errors.rb:94:in
2014 Nov 08
2
SQLite does not depend on zlib, was: Re: [PATCH] Split sql drivers from lib-sql to plugins
Tomas Janousek <tjanouse at redhat.com> wrote in news:20070413132731.GA8281
@redhat.com:
> - SQL_LIBS="$SQL_LIBS -lsqlite3 -lz"
> + SQLITE_LIBS="$SQLITE_LIBS -lsqlite3 -lz"
Hi,
this patch fixes a build error during cross compilation to a system without
the libz target package:
--- dovecot-2.2.15.org/configure.ac 2014-10-25
2016 Oct 20
2
queue_log/cel sqlite
On Thu, Oct 20, 2016 at 4:50 AM, marek cervenka <cervajs2 at gmail.com> wrote:
> i tested this
>
> # cat /etc/asterisk/extconfig.conf
> [settings]
> queue_log => sqlite3,cdrDb
>
> # cat /etc/asterisk/res_config_sqlite3.conf
> [cdrDb]
> dbfile = /var/lib/asterisk/realtime.sqlite3
>
> sqlite3 /var/lib/asterisk/realtime.sqlite3
>
> CREATE TABLE
2007 Nov 15
2
Story adapter and SQLite Was:What command to run all stories?
Hi, by switching to MySQL from SQLite, it fixed the problem. I ran
rdebug on it and it is trying to call
I ActiveRecord::Base.connection.begin_db_transaction. from
ActiveRecordSafetyListener.scenario_started. I don''t think SQLLite
likes transactions.
Ed
On Nov 15, 2007 10:56 AM, Ed Howland <ed.howland at gmail.com> wrote:
> If I run the story stand-alone, I get:
> ruby
2007 Jun 02
2
Unit tests breaks with sqlite
Hi,
I''m using an sqlite3 database with Rails and have some trouble running
unit tests
What I''ve done is
* rails my_app
* edited database.yml to use sqlite3 adapter, db/my_app_development
and db/my_app_test
* ruby script\generate model user
* edited model
class User < ActiveRecord::Base
validates_presence_of :name
validates_uniqueness_of :name
end
*
2019 Feb 03
0
Crash when using dict quotas with sqlite database
All I did was
??? - create a sqlite database with: # sqlite3 /tmp/storage.db (/run
only to test for perm issues in other folders)
??? - change it's owner to mail (that's the user owning the mail files):
# chown mail:mail /tmp/storage.db
??? - point dovecot to the file in "dovecot-dict-sql.conf.ext" with
"connect = /tmp/storage.db"
??? - enable quota in
2014 Jun 30
0
Login failure with SElinux enforcing + Sqlite user DB
I am having a very strange issue with Dovecot + Sqlite + SELinux in enforcing. I am able to log in via IMAPS if SELinux is in permissive, but not able to do so when in enforcing. I do not see any SELinux denials even with dontaudit's enabled. I am running Centos 5 on x86_64 with a customized kernel build and SElinux Strict policy. The log dumps below are in the following order:?
1. My syslog
2019 Feb 03
0
Crash when using dict quotas with sqlite database
...and then I found the commit I was looking for. It's fixed in https://github.com/dovecot/core/commit/ab80122c68bfe5c3dbae2b4d782f4181122710a1.patch
Aki
> On 03 February 2019 at 20:06 Aki Tuomi <aki.tuomi at open-xchange.com> wrote:
>
>
> Can you try out the attached patch?
>
> Aki
>
> > On 03 February 2019 at 17:17 Marcel Menzel <mail at mcl.gg>
2006 Oct 10
1
Python/sqlite date time problems.
Bear with me, this is CentOS related. :)
I have a python CGI that's behaving weirldy on Whitebox systems
that've been switched over to CentOS 4 (ages ago, no other problems to
speak of aside from this one).
I've broken the problem down to a minimal test case...
1. Create a small database
# sqlite3 /tmp/testcase.db 'CREATE TABLE testtable ( date date primary
key unique, name
2015 Apr 22
0
SQLite does not depend on zlib, was: Re: [PATCH] Split sql drivers from lib-sql to plugins
Bernd Kuhls <bernd.kuhls at t-online.de> wrote in
news:XnsA3DF68DCAEF69berndkuhlsPkbjNfxxIA at bernd-kuhls.de:
> Tomas Janousek <tjanouse at redhat.com> wrote in news:20070413132731.GA8281
> @redhat.com:
>
>> - SQL_LIBS="$SQL_LIBS -lsqlite3 -lz"
>> + SQLITE_LIBS="$SQLITE_LIBS -lsqlite3 -lz"
>
> Hi,
>
2009 Jul 27
2
Can't delete sqlite database
Did a quick experiment with a new project and added the default sqlite
database with rake db:migrate.
Now I want to get rid of it. I use rake db:drop and that will delete the
file, but as soon as I restart the Rails app, the db is recreated.
Aargh!
I can''t find any other file which has been modified which mighht cause
the db to be created.
How do I get rid of this permanently?
-- gw
2006 May 24
7
migrations and SQLite
I read in the instructions of Tracks that "upgrading via the rake
migrate command is quite a bit more tricky currently with SQLite and
SQLite3". Is there any gotcha regarding migrations and SQLite3?
-- fxn
2006 Dec 29
5
sqlite errors
Hello,
When I kick off SVN1992 with storeconfigs=yes, I get the following error:
err: Could not store configs: SQLite3::SQLException: SQL logic error
or missing database: INSERT INTO resources ("exported", "line",
"title", "host_id", "restype", "source_file_id") VALUES(NULL, 23,
''svnpkgadd-emacs-nox-etc'', NULL, NULL,