Project

General

Profile

Bug #781

boolean are different depending on db

Added by Thomas Capricelli over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
12/13/2011
Due date:
% Done:

100%

Estimated time:

Description

Redmine is based on Ruby on Rails, and RoR uses different way of storing boolean depending on the db backend.
  • on sqlite, it uses a string of length 1 with either 't' or 'f'
  • on mysql, it uses a tiny int with 0 or 1 (aka "the normal way everybody does")

Associated revisions

Revision 29:9fb6c218f720 (diff)
Added by Thomas Capricelli over 7 years ago

The way RoR stores boolean depends on the db: provides our own abstraction
for "boolean" and use it everywhere.
fixes #781

History

#1

Updated by Thomas Capricelli over 7 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Applied in changeset 9fb6c218f720.

#2

Updated by Thomas Capricelli over 7 years ago

  • Target version set to 1.0

Also available in: Atom PDF