Mercurial > p > roundup > code
diff roundup/backends/back_postgresql.py @ 2746:adce02da25b7 maint-0.7
merge from HEAD
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Fri, 08 Oct 2004 08:10:59 +0000 |
| parents | 4dd01588db90 |
| children | d3a5e382d44a |
line wrap: on
line diff
--- a/roundup/backends/back_postgresql.py Fri Oct 08 08:07:33 2004 +0000 +++ b/roundup/backends/back_postgresql.py Fri Oct 08 08:10:59 2004 +0000 @@ -90,7 +90,6 @@ arg = '%s' def sql_open_connection(self): - raise NotImplementedError, "Please don't use me just yet..." db = getattr(self.config, 'POSTGRESQL_DATABASE') try: conn = psycopg.connect(**db) @@ -160,6 +159,11 @@ c.execute('CREATE INDEX %ss_key_idx ON %ss(%s_key)'%(name, name, name)) + def fix_version_3_tables(self): + rdbms_common.Database.fix_version_3_tables(self) + self.cursor.execute('''CREATE INDEX words_both_idx ON public.__words + USING btree (_word, _textid)''') + def add_actor_column(self): # update existing tables to have the new actor column tables = self.database_schema['tables']
