mirror of
https://github.com/jlengrand/twitterboard.git
synced 2026-03-10 08:51:22 +00:00
Will be used to set problematic as crawled and try to correct them later on. This avoids having to process them over and over. I might have to think about a better way to perform database updates if I do it often.
17 lines
368 B
Python
17 lines
368 B
Python
"""
|
|
Changes made between v00 and v01
|
|
|
|
Operation is :
|
|
- Add new column of type boolean and name invalid in Tweet table
|
|
"""
|
|
import sqlite3
|
|
|
|
db_name = '/home/jll/Documents/code/twitterboard/twiderboard.db'
|
|
|
|
con = sqlite3.connect(db_name)
|
|
c = con.cursor()
|
|
c.execute("ALTER TABLE tweets ADD COLUMN 'invalid' BOOLEAN")
|
|
con.commit()
|
|
c.close()
|
|
|
|
print "database updated to v01" |