From: Kern Sibbald Date: Thu, 11 Nov 2004 08:11:19 +0000 (+0000) Subject: Fix syntax of renaming postgresql per Dan. X-Git-Tag: Release-1.36.1~34 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a6c594f48b25a7479bfede6baeb580695fcef77b;p=bacula%2Fbacula Fix syntax of renaming postgresql per Dan. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1683 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/cats/update_postgresql_tables.in b/bacula/src/cats/update_postgresql_tables.in index 396e3a5a12..8739ffce6a 100755 --- a/bacula/src/cats/update_postgresql_tables.in +++ b/bacula/src/cats/update_postgresql_tables.in @@ -21,11 +21,11 @@ ALTER TABLE media ALTER COLUMN EndBlock SET NOT NULL; UPDATE Filename SET Name='' WHERE Name=' '; -alter table file alter column filenameid rename to filenameid-old; +alter table file rename column filenameid to filenameidold; alter table file add column filenameid integer; -update file set filenameid = filenameid-old; +update file set filenameid = filenameidold; alter table file alter column filenameid set not null; -alter table file drop column filenameid-old; +alter table file drop column filenameidold; DELETE FROM Version; INSERT INTO Version (VersionId) VALUES (8);