-
Notifications
You must be signed in to change notification settings - Fork 2
TweakingSQL
Tapper team edited this page Mar 10, 2016
·
4 revisions
- dump create table statements as the OR mapper would use them
- modify them to your needs
- execute that modified SQL against your database
- initialize Tapper but skip its table creation
You should have installed all Tapper modules, e.g., by following the HelloWorld instructions.
mkdir -p /tmp/my-tweaked-tapper-tables
cd /tmp/my-tweaked-tapper-tables
perl -Ilib -MTapper::Schema::TestrunDB -MTapper::Model=model -e 'model->create_ddl_dir([qw/MySQL SQLite/], undef, "./")'vi Tapper-Schema-TestrunDB-4.001043-MySQL.sql
# patch manually whatever you consider important $ mysql -u root -p
$ mysql> drop database testrundb;
$ mysql> create database if not exists testrundb CHARACTER SET utf8 COLLATE utf8_general_ci;
mysql> grant all on `testrundb`.* to `tapper`@localhost identified by 'verysecret';
mysql> quit;TO BE CONTINUED...
- About
- Deployment
- Hello World - easiest start