From 4b65446fb63496a12486ed8616ba84186e82f74c Mon Sep 17 00:00:00 2001 From: Dries Buytaert <dries@buytaert.net> Date: Mon, 14 Aug 2006 07:13:46 +0000 Subject: [PATCH] - Removed prefix.sh script. No longer needed thanks to the installer. --- scripts/prefix.sh | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 scripts/prefix.sh diff --git a/scripts/prefix.sh b/scripts/prefix.sh deleted file mode 100644 index dc8469d97c28..000000000000 --- a/scripts/prefix.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/sh -# $Id$ - -if [ $# != 2 ]; then - cat >&2 << EOH -This is Drupal database prefixer. - -Usage: - $0 prefix original_db.sql >prefixed_db.sql - -- all tables will prefixed with 'prefix' -EOH - -exit 1; -fi - -PREFIX=$1; -sed "s/^CREATE TABLE /CREATE TABLE $PREFIX/; - s/^INSERT INTO /INSERT INTO $PREFIX/; - s/^REPLACE /REPLACE $PREFIX/; - s/^ALTER TABLE /ALTER TABLE $PREFIX/; - s/^CREATE SEQUENCE /CREATE SEQUENCE $PREFIX/; - s/^ALTER SEQUENCE /ALTER SEQUENCE $PREFIX/; - s/^CREATE INDEX \(.*\) ON /CREATE INDEX $PREFIX\\1 ON $PREFIX/; - s/^CREATE UNIQUE INDEX \(.*\) ON /CREATE UNIQUE INDEX $PREFIX\\1 ON $PREFIX/; - s/^UPDATE \(.*\) SET /UPDATE $PREFIX\\1 SET /; - s/^DROP TABLE IF EXISTS /DROP TABLE IF EXISTS $PREFIX/; - s/ DEFAULT nextval('/ DEFAULT nextval('$PREFIX/; - " $2 - -- GitLab