[tor-commits] [stem/master] Use INTEGER rather than NUMBER for sqlite type

atagar at torproject.org atagar at torproject.org
Sun Sep 3 00:53:06 UTC 2017


commit 6831e262f4a4832f7ff6cd56504a78c084a5ec8d
Author: Damian Johnson <atagar at torproject.org>
Date:   Sat Sep 2 17:52:12 2017 -0700

    Use INTEGER rather than NUMBER for sqlite type
    
    First tutorials I saw used NUMBER but seems INTEGER is the preferred type.
---
 stem/manual.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/stem/manual.py b/stem/manual.py
index 290688e6..18a5d34d 100644
--- a/stem/manual.py
+++ b/stem/manual.py
@@ -87,14 +87,14 @@ DATABASE = None  # cache database connections
 
 SCHEMA_VERSION = 1  # version of our scheme, bump this if you change the following
 SCHEMA = (
-  'CREATE TABLE schema(version NUMBER)',
+  'CREATE TABLE schema(version INTEGER)',
   'INSERT INTO schema(version) VALUES (%i)' % SCHEMA_VERSION,
 
   'CREATE TABLE metadata(name TEXT, synopsis TEXT, description TEXT, man_commit TEXT, stem_commit TEXT)',
   'CREATE TABLE commandline(name TEXT PRIMARY KEY, description TEXT)',
   'CREATE TABLE signals(name TEXT PRIMARY KEY, description TEXT)',
   'CREATE TABLE files(name TEXT PRIMARY KEY, description TEXT)',
-  'CREATE TABLE torrc(key TEXT PRIMARY KEY, name TEXT, category TEXT, usage TEXT, summary TEXT, description TEXT, position NUMBER)',
+  'CREATE TABLE torrc(key TEXT PRIMARY KEY, name TEXT, category TEXT, usage TEXT, summary TEXT, description TEXT, position INTEGER)',
 )
 
 CATEGORY_SECTIONS = OrderedDict((



More information about the tor-commits mailing list