similar to: auto_increment disappearing

Displaying 20 results from an estimated 90000 matches similar to: "auto_increment disappearing"

2009 Apr 11
0
migration oracle auto_increment
I have a schema for ~15 tables in MySQL. I need to migrate it to Oracle though I''ve never used Oracle before. I see that Oracle doesn''t have an auto_increment built in. One must create a trigger table for each auto_incrementing id. I''m contemplating translating my MySQL schema into a Ruby migration script. Do you know if Ruby migrations will generate enough SQL to
2006 Aug 13
0
Custom id field auto_increment increment and offset?
Hi all, in mysql, you can set the following environment variables: set @@auto_increment_offset = 4; set @@auto_increment_increment =10; such that: create table people (id int auto_increment primary key, name char(100)); insert into people set name=''Giuseppe''; insert into people set name=''Laura''; select * from people; +----+----------+ | id | name |
2006 Jul 10
2
use auto_increment before data is stored
Hello, I have 2 models (category with id(auto_increment), name and item with id(auto_increment), category_id, name). But I want to store the data with only one form that creates a new category and the corresponding items at the same time. My problem is now that I don''t know how to tell Ruby to fetch the auto_increment id of the category table and then use it for the category_id of the
2006 Mar 01
2
Oracle auto_increment ??? & Rails
To make a new istance of an Oracle table with Rails, i need that this table had a column named ''id''. This ''id'' must be Primary Key & auto_increment;. How Can I modify the ''id'' properties to do it Auto_increment in Oracle? -- Posted via http://www.ruby-forum.com/.
2006 Apr 04
1
What is the best way to handle this? It''s not a good use of the new Polymorphic-Association thingy is it?
Just getting back into Rails, so apologies. Just a bit of advice please. I''m trying to rewrite the change control app that I wrote originally in VB/Oracle. It''s used heavily by our project and customer and seems a good project to rewrite in rails, if not for this customer then perhaps for another. Anyway, I have decided to go with MySQL this time and have the following
2006 Jan 23
4
won''t auto_increment
I am writing my first RoR ap and am having problems with ActiveRecord''s basic functions. The first one is that the id column is not auto incrementing. I can add one record but after that it says, "Mysql::Error: #23000Duplicate entry ''0'' for key 1"... b -- Posted via http://www.ruby-forum.com/.
2006 Jan 11
1
Composite primary key
Hi All, How do I specify a composite primary key for a table in ActiveRecord? For example the table Recipe which has the primary key [cookie id, version number] where cookie id is also a foreign key referencing Cookie. Also: Thanks to Nic and Adam for helping with the Cookie -> Cooky problem. /Hugo --SQL * CREATE* *TABLE* `Raw_Materials`* (* id *INT*
2006 Jan 10
0
Paginate with two tables ?
First I read previous thread with similar problem but I don''t find answer (problem is little diffrent) Hello, I have problem with display information from two tables using paginate.. Here is code. ##### SQL create table subscribers ( id integer not null auto_increment, name varchar(32) not null, surname varchar(64) not null, create_timestamp DATETIME not null, modify_timestamp DATETIME
2008 May 23
7
Ubuntu and disappearing windows
I run a program called GradeQuick under wine in Ubuntu 8.04. It works well but occasionally I mess up and minimize the window, I immediately lose access to the window as it seems to be invisible to application switcher or indeed the task-bar. Any suggestions how to get it back when I do this? At the moment I have to open system monitor and kill the process, then restart the program and mentally
2006 Apr 18
2
RoR, lighttpd, and localhost
This is really more of a web server configuration question, but it seemed like a problem in which RoR''ers would be well versed. I am running a RoR app on lighttpd behind an Apache proxy (well, reverse proxy is perhaps more accurate). Since the requests are being proxied to Lighttpd from the same server, my Rails apps think that the requests are coming from localhost. As such, anytime
2006 Feb 23
3
has_many reference
I am trying to do something right from Agile Web Dev with Rails book and it does not work. I must be missing something obvious. I have a one-to-many relationship: class Draft < ActiveRecord::Base has_many :endorsees end class Endorsees < ActiveRecord:: Base belongs_to :draft end >From my reading, methinks I should be able to say: d = Draft.new d.endorsees << Endorsee.new
2018 Apr 05
0
cluster.readdir-optimize and disappearing files/dirs bug
Can you check whether you are hitting https://bugzilla.redhat.com/show_bug.cgi?id=1512437? Note that the fix is not backported to 3.13 branch, but is available on 4.0 through https://bugzilla.redhat.com/1512437. On Tue, Apr 3, 2018 at 11:13 PM, Artem Russakovskii <archon810 at gmail.com> wrote: > Hi, > > As many of you know, gluster suffers from pretty bad performance issues >
2009 Jul 31
2
MS Word document window disappearing in 2003 & 2007 versions
Hi Regularily, I will 'lose' a Word document window. It happens when both single and multiple documents are opened. I will first explain the 2 document case. If I open 2 documents, I can see this fact by looking at the 'window' menu; there, it will say that there are 2 documents open. I can see one document, on screen, but when I try to activate the document that is not seen,
2006 May 05
0
SAMBA: winbind ID's disappearing
http://lists.samba.org/archive/samba/2005-October/113181.html This sounds exactly like what I'm experiencing... for the second time. I'm starting to think it happens whenever the AD folks create a new domain in the forest. (we just added our asia pacific region a couple days ago) Did you ever figure out what's happening? How did you resolve the issue? I remember last time I had
2006 Mar 29
0
has_and_belongs_to_many and collections management
Sorry for the big post. I''m having a lot of confusion when trying to implement a simple model relationship that uses all the good things of ActiveRecord. I need to store some dinamic entries about knowledge of certain people on the database. A knowledge is measured with another table, with a range of possible values for a knowledge. This is a reduced schema of my database: create table
2006 Jan 26
9
Problem with schema_db_import on Site5?
Hello, I am trying to put my rails app on a host .So I presume the method to do this is to first do rake db_schema_dump and then copy it to the host and do rake db_schema_import. I use mySQL Ver 14.7 Distrib 4.1.14, for pc-linux-gnu (i686) using readline 4.3 ** Invoke db_schema_import (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute db_schema_import rake
2016 Jun 30
0
Sequential ID Git hook
I don't think we should do any of that. It's too complicated -- and I don't see the reason to even do it. There's a need for the "llvm-project" repository -- that's been discussed plenty -- but where does the need for a separate "id" that must be pushed into all of the sub-projects come from? This is the first I've heard of that as a thing that needs to
2018 Apr 03
3
cluster.readdir-optimize and disappearing files/dirs bug
Hi, As many of you know, gluster suffers from pretty bad performance issues when there are lots of files. One way to at least attempt to improve performance is setting cluster.readdir-optimize to on. However, based on my recent tests (using Gluster 3.13.2), as well as tests of many others (like http://lists.gluster.org/pipermail/gluster-devel/2016-November/051417.html), there's a bug that
2006 Feb 22
0
Problem: Null values in a CSV format fixture show up a 0 in the test database
Hi all, I''m running into a strange problem. I''m trying to get null values to load from a fixture in CSV form into my test database, but they show up as 0 (zero). I have a table people (simplified version below) create table people ( id int not null auto_increment, target int null default null, name varchar(50) not null, primary key(id) ); that has a
2006 Jan 08
0
Migration doesn''t seem to preserve create_table options in schema
Hi, I have the following migration (abbreviated): class Initial < ActiveRecord::Migration def self.up create_table :messages, :options => ''ENGINE=MyISAM'', :force => true do |t| t.column :id, :integer, :null => false t.column :external_id, :string, :null => false t.column :recipients_count, :integer, :default => 0