[Dbconfig-common-devel]
dbconfig-common/examples/db-example-2.1/upgrade-files
db-test-mysql-2.1.sql, NONE, 1.1 db-test-pgsql-2.1.sql, NONE,
1.1 mysql-upgrade-2.1.pl, NONE, 1.1
seanius at haydn.debian.org
seanius at haydn.debian.org
Sat Jul 30 08:08:20 UTC 2005
- Previous message: [Dbconfig-common-devel]
dbconfig-common/examples/db-example-2.1/install-files
mysql-install.pl, NONE, 1.1 mysql.sql, NONE, 1.1 pgsql.sql,
NONE, 1.1
- Next message: [Dbconfig-common-devel] dbconfig-common/debian changelog, 1.58,
1.59 dbconfig-common.docs, 1.3, 1.4 rules, 1.10, 1.11
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/dbconfig-common/dbconfig-common/examples/db-example-2.1/upgrade-files
In directory haydn:/org/alioth.debian.org/chroot/home/users/seanius/tmp/cvs-serv5607/db-example-2.1/upgrade-files
Added Files:
db-test-mysql-2.1.sql db-test-pgsql-2.1.sql
mysql-upgrade-2.1.pl
Log Message:
here's the sample reference packages, now included as part of
the main package.
--- NEW FILE: db-test-mysql-2.1.sql ---
-- this sql should automatically be sourced for upgrades from pre-1.2 versions
update mytable set version='1.2';
--- NEW FILE: db-test-pgsql-2.1.sql ---
-- this sql should automatically be sourced for upgrades from pre-1.2 versions
update mytable set version='1.2';
--- NEW FILE: mysql-upgrade-2.1.pl ---
#!/usr/bin/perl
use DBI;
use strict;
# this is the value of the config file passed to us by dbconfig-common
my $conffile = $ENV{'dbc_config_include'};
# these are the default names of the variables in the config file
our ($dbname, $dbuser, $dbpass, $dbserver, $dbtype);
# load 'er up.
require $conffile;
my $dsn = "DBI:$dbtype:database=$dbname;host=$dbserver";
# error checking here would be a plus.
my $dbh = DBI->connect($dsn, $dbuser, $dbpass);
# error checking here would be a plus too.
$dbh->do("UPDATE versiontable set version='2.1'");
$dbh->disconnect();
exit 0;
- Previous message: [Dbconfig-common-devel]
dbconfig-common/examples/db-example-2.1/install-files
mysql-install.pl, NONE, 1.1 mysql.sql, NONE, 1.1 pgsql.sql,
NONE, 1.1
- Next message: [Dbconfig-common-devel] dbconfig-common/debian changelog, 1.58,
1.59 dbconfig-common.docs, 1.3, 1.4 rules, 1.10, 1.11
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Dbconfig-common-devel
mailing list