[system] / branches / rel-2-4-dev / webwork2 / lib / WeBWorK / Utils / CourseManagement / sql_single.pm Repository:
ViewVC logotype

Log of /branches/rel-2-4-dev/webwork2/lib/WeBWorK/Utils/CourseManagement/sql_single.pm

Parent Directory Parent Directory


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Revision:

Revision 5290 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 10 01:52:30 2007 UTC (5 years, 9 months ago) by sh002i
File length: 6071 byte(s)
Diff to previous 5262
backport (gage): don't use hardwired  mysql and mysqldump commands.

Revision 5262 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 9 19:17:54 2007 UTC (5 years, 9 months ago) by sh002i
File length: 5841 byte(s)
Diff to previous 5243
backport (sh002i): UGH! work around egrigious bug in course archiving
code.

Revision 5243 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 7 22:35:14 2007 UTC (5 years, 9 months ago) by
File length: 5935 byte(s)
Diff to previous 4539
This commit was manufactured by cvs2svn to create branch 'rel-2-4-dev'.

Revision 4539 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 29 19:39:55 2006 UTC (6 years, 7 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils/CourseManagement/sql_single.pm
File length: 5935 byte(s)
Diff to previous 4521
use $db->rename_tables for course renaming, remove addCourseHelper,
deleteCourseHelper, copyCourseDataHelper and associated infrastructure.
still have to do something about archive/unarchive -- they are not only
mysql specific, but they rely on the database being local, on the
default port, and named "webwork". :P

Revision 4521 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 25 22:35:05 2006 UTC (6 years, 7 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils/CourseManagement/sql_single.pm
File length: 17323 byte(s)
Diff to previous 4501
use a single username/password for connecting to the SQL database. this
means that only one DBI handle is created instead of two, and the
Driver's connect/disconnect methods are no-ops.

Revision 4501 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 15 22:09:36 2006 UTC (6 years, 8 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils/CourseManagement/sql_single.pm
File length: 17329 byte(s)
Diff to previous 4129
removed support module for deleted sql dblayout

Revision 4129 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 15 14:48:19 2006 UTC (6 years, 11 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/Utils/CourseManagement/sql_single.pm
File length: 16701 byte(s)
Diff to previous 4084
Implemented unarchiving function to complement archiving function.

Archive exports the course database to courseName/DATA and then tas and gzips the directory courseName to
courseDirectory/courseName.tar.gz

Unarchive allows one to choose files of the type courseDirectory/courseName.tar.gz  and then
ungzip, untar them to courseDirectory/courseName   -- the database record in courseName/DATA is
then loaded into the webwork database.

So far there is only minimal error checking about whether all or part of the course exists when unarchiving.

There are not yet features for archiving and then deleting a course -- these two operations have to be done
separately for now.

Revision 4084 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 18 19:32:53 2006 UTC (7 years ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils/CourseManagement/sql_single.pm
File length: 15385 byte(s)
Diff to previous 3975
modifications necessary to support moodle tables:

* respect non_native flag in dbLayout

With these changes, courses with the sql_moodle dbLayout can be created,
deleted, renamed, and archived using the WeBWorK course management
tools.

Revision 3975 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jan 26 21:45:42 2006 UTC (7 years, 3 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils/CourseManagement/sql_single.pm
File length: 15074 byte(s)
Diff to previous 3973
forward-port from rel-2-2-patches: (make addCourse, deleteCourse more
robust.
- pre-check permissions before trying to mkdir/rmtree
- treat creation errors on directories other than the root as warnings
- treat deletion errors on all directories as warnings
- treat sql_single "drop table" errors as warnings
- supress DBI's error reporting for command-line addcourse/delcourse)

Revision 3973 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 25 23:13:56 2006 UTC (7 years, 3 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils/CourseManagement/sql_single.pm
File length: 15049 byte(s)
Diff to previous 3636
forward-port from rel-2-2-dev: (update copyright date range -- 2000-2006.
this is probably overkill, since there are some files that were created
after 2000 and some files that were last modified before 2006.)

Revision 3636 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Sep 17 20:14:02 2005 UTC (7 years, 8 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/Utils/CourseManagement/sql_single.pm
File length: 15056 byte(s)
Diff to previous 3528
Expanded information in error messages.

Revision 3528 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Aug 14 16:52:11 2005 UTC (7 years, 9 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/Utils/CourseManagement/sql_single.pm
File length: 15007 byte(s)
Diff to previous 3290
Add the beginnings of a facility for archiving a course.  This method uses mysqldump
and therefore will work only with a mysql database.  Many things are still hardwired
In particular mysqldump is hardwired.
The database name is hardwired to  "webwork"

Archiving consists of dumping the tables associated to the course to a file
$courseID/DATA/$courseID_mysql.database  (this file can be used
to created a new database for the course.  it will not overwrite existing
tables however.)

Then the entire course directory is tarred and gzipped and placed
in the courses directory with the naem $courseID.tar.gz

Currently nothing is deleted from the database and no directories are deleted.
So the implementation is fairly safe, but not yet very useful for course management.

There is not yet a facility for automatically importing the archived course.

Revision 3290 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 15 21:46:12 2005 UTC (7 years, 11 months ago) by jj
Original Path: trunk/webwork2/lib/WeBWorK/Utils/CourseManagement/sql_single.pm
File length: 12461 byte(s)
Diff to previous 3059
This change affects course creation using mysql.  Field types are now
determined by DB/Record/*.pm in the function SQL_TYPES.  Key fields
which are text are set to binary types (blobs) so that indexing on those
fields is case sensitive.  The net result should be fast database access
while still having it be case-sensitive in the searching.

Revision 3059 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 21 04:41:03 2004 UTC (8 years, 4 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils/CourseManagement/sql_single.pm
File length: 12126 byte(s)
Diff to previous 2683
Added course renaming to CourseManagement, CourseAdmin.

It works like this:

- move the course directory
- move any course subdirectories that are still at their old locations
  (like if they were outside the course directory)
- create a new database using addCourseHelper()
- copy the course data into the new course database using
  copyCourseDataHelper() (INSERT INTO $new SELECT * FROM $old)
- delete the old course database using deleteCourseHelper()

TODO:
* write helpers for gdbm and sql layouts
* write command-line script

Revision 2683 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 24 16:53:16 2004 UTC (8 years, 8 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils/CourseManagement/sql_single.pm
File length: 7904 byte(s)
Diff to previous 2640
added code to generate indexes when creating sql and sql_single courses.

Revision 2640 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 18 01:42:33 2004 UTC (8 years, 9 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils/CourseManagement/sql_single.pm
File length: 7607 byte(s)
Diff to previous 2587
added deletion code, got rid of crap.

Revision 2587 - (view) (download) (as text) (annotate) - [select for diffs]
Added Tue Aug 10 23:57:24 2004 UTC (8 years, 9 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils/CourseManagement/sql_single.pm
File length: 7564 byte(s)
broke out database-layout specific code into separate classes

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9