Skip to content
This repository has been archived by the owner on May 28, 2022. It is now read-only.

Commit

Permalink
Updated database schema version. Removed some TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Romansky committed Dec 28, 2014
1 parent f19e76c commit 506f715
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/freeseer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

NAME = 'freeseer'
__version__ = '3.0.9999'
SCHEMA_VERSION = 310
SCHEMA_VERSION = 315
__author__ = "Free and Open Source Software Learning Center"
__email__ = "[email protected]"
URL = 'http://github.com/Freeseer/freeseer'
Expand Down
7 changes: 1 addition & 6 deletions src/freeseer/framework/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@
Time timestamp,
UNIQUE (Speaker, Title) ON CONFLICT IGNORE)'''

# The SQLITE timestamp field corresponds to the DateTime object. The Date column in the database can be created from
# a DateTime.date() call.
# The SQLITE timestamp field corresponds to the QDate and QTime object.
PRESENTATIONS_SCHEMA_310 = '''CREATE TABLE IF NOT EXISTS presentations
(Id INTEGER PRIMARY KEY,
Title varchar(255),
Expand All @@ -63,11 +62,7 @@
EndTime timestamp,
UNIQUE (Speaker, Title) ON CONFLICT IGNORE)'''

# TODO: Update the SCHEMA_VERSION to 315
# TODO: Integrate new database scheme with importers/exporter functions
# TODO: Force Presentation.Date to be a QDate
# TODO: Enforce the default database values in the CSV/RSS importer
# TODO: Enforce the default database values in Presentation.__init__
# TODO: Check what format the csv and rss sample files are in. For instance, do the rss files use 'None' instead of ''
# for missing fields?
# TODO: Update _helper_presentation_exists() and get_presentation_id() to use the new schema such that they no longer
Expand Down

0 comments on commit 506f715

Please sign in to comment.