Skip to content

Commit

Permalink
Add table for email templates.
Browse files Browse the repository at this point in the history
Removed deprecated table llx_domain.
  • Loading branch information
eldy committed Apr 23, 2014
1 parent caf6712 commit 002e64d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
12 changes: 12 additions & 0 deletions htdocs/install/mysql/migration/3.5.0-3.6.0.sql
Expand Up @@ -18,6 +18,18 @@
-- -- VMYSQL4.1 DELETE FROM llx_usergroup_user WHERE fk_usergroup NOT IN (SELECT rowid from llx_usergroup);



create table llx_c_email_templates
(
rowid integer AUTO_INCREMENT PRIMARY KEY,
entity integer DEFAULT 1 NOT NULL, -- multi company id
type_template varchar(32), -- template for wich type of email (send invoice by email, send order, ...)
datec datetime,
label varchar(255),
content text

This comment has been minimized.

Copy link
@hregis

hregis Apr 23, 2014

Contributor

par expérience il est préférable d'utiliser un champ de type MEDIUMTEXT ou LONGTEXT à la place de TEXT !
un template en html prend vite de la place.

)ENGINE=innodb;


-- delete foreign key that should never exists
ALTER TABLE llx_propal DROP FOREIGN KEY fk_propal_fk_currency;
ALTER TABLE llx_commande DROP FOREIGN KEY fk_commande_fk_currency;
Expand Down
Expand Up @@ -14,13 +14,15 @@
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
--
-- Table with templates of emails
-- ===================================================================

create table llx_domain
create table llx_c_email_templates
(
rowid integer AUTO_INCREMENT PRIMARY KEY,
entity integer DEFAULT 1 NOT NULL, -- multi company id
type_template varchar(32), -- template for wich type of email (send invoice by email, send order, ...)
datec datetime,
label varchar(255),
note text
content text
)ENGINE=innodb;

2 changes: 1 addition & 1 deletion htdocs/install/mysql/tables/llx_document_model.sql
Expand Up @@ -17,7 +17,7 @@
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
--
--
-- Liste des modeles de document disponibles
-- Table with list of document templates for document generation (odt/pdf/...)
-- ===================================================================

create table llx_document_model
Expand Down

0 comments on commit 002e64d

Please sign in to comment.