[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit 6831e262f4a4832f7ff6cd56504a78c084a5ec8d
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
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((

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits