diff options
| author | Tristan Zur <tzur@web.web.ccwn.org> | 2014-03-27 22:27:47 +0100 |
|---|---|---|
| committer | Tristan Zur <tzur@web.web.ccwn.org> | 2014-03-27 22:27:47 +0100 |
| commit | b62676ca5d3d6f6ba3f019ea3f99722e165a98d8 (patch) | |
| tree | 86722cb80f07d4569f90088eeaea2fc2f6e2ef94 /webmail/plugins/google_contacts/SQL/mysql.initial.sql | |
Diffstat (limited to 'webmail/plugins/google_contacts/SQL/mysql.initial.sql')
| -rw-r--r-- | webmail/plugins/google_contacts/SQL/mysql.initial.sql | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/webmail/plugins/google_contacts/SQL/mysql.initial.sql b/webmail/plugins/google_contacts/SQL/mysql.initial.sql new file mode 100644 index 0000000..b57704c --- /dev/null +++ b/webmail/plugins/google_contacts/SQL/mysql.initial.sql @@ -0,0 +1,4 @@ +CREATE TABLE google_contacts LIKE contacts;
+
+ALTER TABLE `google_contacts`
+ ADD CONSTRAINT `google_contacts_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`user_id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
