Edgewall Software
Modify

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#9344 closed defect (wontfix)

sqlite db lack of primary keys

Reported by: codegarten.dev@… Owned by:
Priority: normal Milestone:
Component: database backend Version:
Severity: critical Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

I create my trac enviromnets using a sqlite database, it works very well.

Now i want to get some information directly from the database the problem is that some tables are create without primary keys and i need them.

I believe the problem is in sqlite_backend.py but python isn't my speciality and i'm in a hurry so if you can guide me to a quick fix. thank you.

Attachments (0)

Change History (4)

comment:1 by Christian Boos, 15 years ago

Resolution: wontfix
Status: newclosed

As you're in a hurry, I'll make it short: asking us to change our datamodel, adding primary keys just because "you need them" sounds like a joke. Please be serious, if you are able to articulate why you need them, convince us it's a valuable change, provide a patch, etc. then this might be considered, otherwise it's just non-sense.

in reply to:  1 ; comment:2 by anonymous, 15 years ago

Replying to cboos:

As you're in a hurry, I'll make it short: asking us to change our datamodel, adding primary keys just because "you need them" sounds like a joke. Please be serious, if you are able to articulate why you need them, convince us it's a valuable change, provide a patch, etc. then this might be considered, otherwise it's just non-sense.

i'm not saying to change your datamodel, sorry if i not explain things clearly.

In http://trac.edgewall.org/wiki/TracDev/DatabaseSchema the tables attachment, auth_cookie, enum, node_change, permission, session, session_attribute, ticket_change, ticket_custom are defined with primary keys.

when i browse the file trac.db (default) the tables aren't defined with the primary_keys specified in the schema.

Sorry to bother you. I will try to solve the problem my self, only came here cause iḿ not familiar with the structure and the language and i considered this problem as a bug,

Have a nice day!

in reply to:  2 comment:3 by Christian Boos, 15 years ago

Replying to anonymous:

Replying to cboos:

As you're in a hurry, I'll make it short: asking us to change our datamodel, adding primary keys just because "you need them" sounds like a joke. Please be serious, if you are able to articulate why you need them, convince us it's a valuable change, provide a patch, etc. then this might be considered, otherwise it's just non-sense.

i'm not saying to change your datamodel, sorry if i not explain things clearly.

In http://trac.edgewall.org/wiki/TracDev/DatabaseSchema the tables attachment, auth_cookie, enum, node_change, permission, session, session_attribute, ticket_change, ticket_custom are defined with primary keys.

I see … but this page is not a specification of what "should be", rather an a posteriori attempt to document what "is".

when i browse the file trac.db (default) the tables aren't defined with the primary_keys specified in the schema.

Sorry to bother you. I will try to solve the problem my self, only came here cause iḿ not familiar with the structure and the language and i considered this problem as a bug,

Ok, no harm done ;-) But it's not a bug, at most a deficiency in the documentation, which you're welcome to improve.

comment:4 by codegarten.dev@…, 15 years ago

I solved the problem where can i make the change or what can i do ?!

Sorry if not the right place =(

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.