Subversion Repositories oidplus

Rev

Rev 1116 | Rev 1148 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1116 Rev 1130
Line 107... Line 107...
107
        public function setupSetTablePrefix(string $cont, string $table, string $prefix): string {
107
        public function setupSetTablePrefix(string $cont, string $table, string $prefix): string {
108
                $cont = str_replace('['.$table.']', '['.$prefix.$table.']', $cont);
108
                $cont = str_replace('['.$table.']', '['.$prefix.$table.']', $cont);
109
                $cont = str_replace("'dbo.$table'", "'dbo.$prefix$table'", $cont);
109
                $cont = str_replace("'dbo.$table'", "'dbo.$prefix$table'", $cont);
110
                $cont = str_replace('PK_'.$table, 'PK_'.$prefix.$table, $cont);
110
                $cont = str_replace('PK_'.$table, 'PK_'.$prefix.$table, $cont);
111
                $cont = str_replace('IX_'.$table, 'PK_'.$prefix.$table, $cont);
111
                $cont = str_replace('IX_'.$table, 'PK_'.$prefix.$table, $cont);
112
                $cont = str_replace('DF__'.$table, 'DF__'.$prefix.$table, $cont);
112
                return str_replace('DF__'.$table, 'DF__'.$prefix.$table, $cont);
113
                return $cont;
-
 
114
        }
113
        }
115
 
114
 
116
        /**
115
        /**
117
         * @param string $database
116
         * @param string $database
118
         * @return string
117
         * @return string