savannah-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Savannah-cvs] [SCM] Savane-cleanup framework branch, master, updated. 2


From: Jonathan Gonzalez V.
Subject: [Savannah-cvs] [SCM] Savane-cleanup framework branch, master, updated. 2d1e4d99005ef201337e41d4a08428282c4ec3f2
Date: Thu, 25 Jun 2009 03:26:50 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Savane-cleanup framework".

The branch, master has been updated
       via  2d1e4d99005ef201337e41d4a08428282c4ec3f2 (commit)
       via  bdf65dd9cee4fc65fc3d4a5b51ea7edd2913cba7 (commit)
      from  2fae2b8c59400360a10d74fe190ca5b63a4304f3 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/savane-cleanup/framework.git/commit/?id=2d1e4d99005ef201337e41d4a08428282c4ec3f2

commit 2d1e4d99005ef201337e41d4a08428282c4ec3f2
Author: Jonathan Gonzalez V <address@hidden>
Date:   Wed Jun 24 23:25:37 2009 -0400

    Added a sql script to migrate the users from the old savane model to the 
new one with django

diff --git a/migrate_old_savane.sql b/migrate_old_savane.sql
new file mode 100644
index 0000000..acd8050
--- /dev/null
+++ b/migrate_old_savane.sql
@@ -0,0 +1,3 @@
+insert into auth_user (id, username, first_name, email, password, last_login, 
date_joined) select user_id, user_name, trim(convert(realname using latin1)), 
email, user_pw, now(), from_unixtime(add_date) from savane_old.user;
+
+insert into user (user_ptr_id, status,spamscore, confirm_hash, 
authorized_keys, authorized_keys_count, people_view_skills, people_resume, 
timezone, theme, email_hide, gpg_key, gpg_key_count) select user_id, 
status,spamscore, confirm_hash, authorized_keys, authorized_keys_count, 
people_view_skills, convert(people_resume using latin1), timezone, theme, 
email_hide, gpg_key, gpg_key_count from  savane_old.user;

http://git.savannah.gnu.org/cgit/savane-cleanup/framework.git/commit/?id=bdf65dd9cee4fc65fc3d4a5b51ea7edd2913cba7

commit bdf65dd9cee4fc65fc3d4a5b51ea7edd2913cba7
Author: Jonathan Gonzalez V <address@hidden(none)>
Date:   Wed Jun 24 17:40:56 2009 -0400

    Commented realname from the model since we can use (first|last)_name

diff --git a/savane/savane_user/models.py b/savane/savane_user/models.py
index 6e09594..0b23042 100644
--- a/savane/savane_user/models.py
+++ b/savane/savane_user/models.py
@@ -2,7 +2,7 @@ from django.db import models
 from django.contrib.auth.models import User, UserManager
 
 class User(User):
-    realname = models.CharField(max_length=96)
+#    realname = models.CharField(max_length=96)
     status = models.CharField(max_length=48)
     spamscore = models.IntegerField(null=True, blank=True)
     confirm_hash = models.CharField(max_length=96, blank=True, null=True)

-----------------------------------------------------------------------

Summary of changes:
 migrate_old_savane.sql       |    3 +++
 savane/savane_user/models.py |    2 +-
 2 files changed, 4 insertions(+), 1 deletions(-)
 create mode 100644 migrate_old_savane.sql


hooks/post-receive
-- 
Savane-cleanup framework




reply via email to

[Prev in Thread] Current Thread [Next in Thread]