similar to: won''t auto_increment

Displaying 20 results from an estimated 3000 matches similar to: "won''t auto_increment"

2006 Mar 09
4
habtm questions
I''ve got some of this working but other parts are ellusive. I have CREATE TABLE `bags` ( `id` int(11) NOT NULL auto_increment, `name` varchar(255) NOT NULL default '''', PRIMARY KEY (`id`) CREATE TABLE `packages` ( `id` int(255) NOT NULL auto_increment, `name` varchar(255) NOT NULL default '''', PRIMARY KEY (`id`) CREATE TABLE
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 May 17
10
HABTM << producing incorrect insert sql ?
Greetings railsers - I''m trying to add to a collection through HABTM, but the sql insert is trying to insert a PK rather than letting mysql produce the auto_increment''ed PK. ## @medication_dose holds a validated, saved model @medication_dose.medication_frequencies << MedicationFrequency.find (:all) The above bails with, Mysql::Error: #23000Duplicate
2006 Apr 22
9
one to many question
1. A category has parent categories. 2. A product is in many categories and a category has many products. 3. Products and category both have images in the same image table. ie. a product and / or category could have multiple images.<=== my question is related to this So among other things I presume I have to do the following: class Category < ActiveRecord:Base #...
2006 Jan 04
4
Need some implementation ideas :-)
Hi, I have good this cool challenge from my boss on developing a very simple cms-like system to publish articles within. The caveat is that he wants to have multi-lingual content. At first I thought RoR would be perfect for the assignment but right now I''m not so sure. My first attempt involved creating a table for each model/languagde like this: articles_en articles_dk articles_de
2006 Jan 08
4
ID from child table not handled by AR
Hi all, Im slowly moving forward, but there''s something a miss. I can save some relational records to tables, but only once. For an unknown reason, the primary key (id) of the child table is not automatically increased. (I can only perform one save, (the first records id field holds the value ''0'') and during the next save it says: Mysql::Error: Duplicate entry
2006 Jan 04
8
Trying to display data from two tables
Alrighty folks, I''m really trying here, and want to succeed with Ruby on Rails. I''m trying to display data that is linked from two tables using the Active Record naming conventions, as described in Agile Web book. The stripped-down basics; Database drop table if exists people; CREATE TABLE `people` ( `id` int(6) NOT NULL auto_increment, `lastname` varchar(30) NOT NULL,
2010 Sep 07
5
Remus blktap2 issue
Hello, I have been playing around with Remus on Xen 4.0.1, attempting to fail-over for an HVM domU. I''ve run into some problems that I think could be related to tapdisk2 and its interaction with how one sets up Remus disk replication in the domU config file. A few things I''ve noticed: -The tap:remus:backupHostIP:port|aio:imagePath notation does not work for me, although this
2011 Jun 23
9
reg REMUS
Hi All, I want to test REMUS over XEN, I would like to know the basic steps to be followed . I have installed xen4.1 on debian and i didn''t find any command related to remus, is there any steps which i have to carry out? _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
2012 Feb 08
4
remus fail with SMP domU
Dear List, i''m experimenting with remus with the following setup. dom0: - Debian Squeeze - Jeremy''s 2.6.38.48 kernel - xen 4.1.2 recompiled from sid - DRBD for block device backend domU - Debian Squeeze Remus is working fine unless i try to give more than 1 core to the domU. Here''s the error from remus when i''m trying to enable it for an SMP domU:
2010 Aug 02
9
remus support in Opensuse ?
Hi, i already tried to ask this and did not obtain any answer. Is remus is supported in Opensuse Linux actually ? Regards _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
2010 Nov 12
4
remus support under debian squeeze
hi xen cracks, i know that this formum might be the wrong one for my question but maybe the last and/or only one what can give me my questions answered. i know how to setup and run a xen infrastructure, i have several server in production. the new thing is, that i started to use the debian squeeze, cause of the native suport of remus (kernel support), as everyone say: hardware ******* hp dl
2011 Nov 21
7
BLKTAP
I noticed recently that there is no real easy way to get the kernel driver for blktap working in mainline. I''ve pulled down the source from Daniel Stodden''s linux git tree on xensource, but it looks like it''s for debian and I''m running Fedora 14, so I''m trying to sort it out. I run the 3.1.x kernel and don''t want to go back to the 2.6.32 that
2012 Oct 01
5
How to get the checkpoint size in remus code?
Hi, I''m doing my master research and I need to adapt remus code. Now... I wanna get the checkpoint size (memory + disk) on each period. Does someone know what function does this? I think some *fd *object''s function in remus code could just get the memory size. Does someone help me? Thanks _______________________________________________ Xen-devel mailing list
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
2010 Jun 19
4
Xen4 + Remus + iSCSI
Hello, we are using debian, xen 3.x and a iscsi-storage with ext4 as filesystem. Heartbeat is used for xen-ha. Now we like to change to xen 4 and remus. The iscsi SAN is available on active-Dom0 and backup-Dom0. I don´t have to use the disk buffering, as I understand remus right, because the file system on both machines is the same. With ext4 we don´t had problems at the xen3-Cluster on
2010 Nov 16
4
Remus crashes
Hello everyone, I''ve managed to configure and start Remus. However, it works only while the protected server is not loaded. As soon as I start a memory-intensive server application, the stream of Remus messages stops, leaving me with an error message. I think the message is not always the same, but here is what I''ve got from the last run: PROF: suspending at
2013 Oct 21
36
[PATCH 0 of 5 V3] Remus/Libxl: Network buffering support
This patch series adds support for network buffering in the Remus codebase in libxl. Changes in V3: [1/5] Fix redundant checks in configure scripts (based on Ian Campbell''s suggestions) [2/5] Introduce locking in the script, during IFB setup. Add xenstore paths used by netbuf scripts to xenstore-paths.markdown [3/5] Hotplug scripts setup/teardown invocations are now
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 |