summaryrefslogtreecommitdiff
path: root/perl/sql/Wallet-Schema-0.09-0.10-MySQL.sql
diff options
context:
space:
mode:
authorRuss Allbery <eagle@eyrie.org>2014-12-08 21:01:30 -0800
committerRuss Allbery <eagle@eyrie.org>2014-12-08 21:01:30 -0800
commit050534cdd520a276d84dc4a66c81cc8b4faebcb5 (patch)
tree0e74d929e351bd2e5d50787ecfab428d1c9c1561 /perl/sql/Wallet-Schema-0.09-0.10-MySQL.sql
parent68010e4c1957d2bbfe55efdb4bd4b32541c8d344 (diff)
parent7856dc7cc5e16140c0084474fe54338f293bf77e (diff)
Merge tag 'upstream/1.2' into debian
Upstream version 1.2
Diffstat (limited to 'perl/sql/Wallet-Schema-0.09-0.10-MySQL.sql')
-rw-r--r--perl/sql/Wallet-Schema-0.09-0.10-MySQL.sql14
1 files changed, 14 insertions, 0 deletions
diff --git a/perl/sql/Wallet-Schema-0.09-0.10-MySQL.sql b/perl/sql/Wallet-Schema-0.09-0.10-MySQL.sql
new file mode 100644
index 0000000..3c54c6d
--- /dev/null
+++ b/perl/sql/Wallet-Schema-0.09-0.10-MySQL.sql
@@ -0,0 +1,14 @@
+-- Convert schema 'sql/Wallet-Schema-0.09-MySQL.sql' to 'Wallet::Schema v0.10':;
+
+BEGIN;
+
+ALTER TABLE duo DROP PRIMARY KEY,
+ ADD COLUMN du_type varchar(16) NOT NULL,
+ ADD INDEX duo_idx_du_type_du_name (du_type, du_name),
+ ADD PRIMARY KEY (du_name, du_type),
+ ADD CONSTRAINT duo_fk_du_type_du_name FOREIGN KEY (du_type, du_name) REFERENCES objects (ob_type, ob_name),
+ ENGINE=InnoDB;
+
+
+COMMIT;
+