1 |
diff -Nur -x '*.orig' -x '*.rej' smeserver-kronolith-2.3/root/etc/e-smith/events/actions/kronolith_upgrade mezzanine_patched_smeserver-kronolith-2.3/root/etc/e-smith/events/actions/kronolith_upgrade |
2 |
--- smeserver-kronolith-2.3/root/etc/e-smith/events/actions/kronolith_upgrade 2008-09-30 23:01:03.000000000 -0500 |
3 |
+++ mezzanine_patched_smeserver-kronolith-2.3/root/etc/e-smith/events/actions/kronolith_upgrade 2008-09-30 23:00:28.000000000 -0500 |
4 |
@@ -91,6 +91,30 @@ |
5 |
$statement->execute or die "execute: $$statement: $DBI::errstr"; |
6 |
} |
7 |
|
8 |
+unless (defined $kronolith_shares->{share_owner}) |
9 |
+{ |
10 |
+ # We need to be careful about this one as it will fail if the |
11 |
+ # column exists, so we check the error. |
12 |
+ my $statement = |
13 |
+ 'ALTER TABLE kronolith_shares CHANGE share_owner share_owner ' . |
14 |
+ 'VARCHAR(255) '; |
15 |
+ $statement = $db_kronolithhandle->prepare($statement) or |
16 |
+ die "prepare: $$statement: $DBI::errstr"; |
17 |
+ $statement->execute or die "execute: $$statement: $DBI::errstr"; |
18 |
+} |
19 |
+ |
20 |
+unless (defined $kronolith_shares_users->{user_uid}) |
21 |
+{ |
22 |
+ # We need to be careful about this one as it will fail if the |
23 |
+ # column exists, so we check the error. |
24 |
+ my $statement = |
25 |
+ 'ALTER TABLE kronolith_shares_users CHANGE user_uid user_uid ' . |
26 |
+ 'VARCHAR(255) '; |
27 |
+ $statement = $db_kronolithhandle->prepare($statement) or |
28 |
+ die "prepare: $$statement: $DBI::errstr"; |
29 |
+ $statement->execute or die "execute: $$statement: $DBI::errstr"; |
30 |
+} |
31 |
+ |
32 |
unless (defined $kronolith_shares_groups->{group_uid}) |
33 |
{ |
34 |
# We need to be careful about this one as it will fail if the |