Blame view

config/schema/i18n.sql 666 Bytes
07e4c3fb   Etienne Pallier   v4.108.0-3.7.9 - ...
1
# Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
6c4edfa3   Alexandre   First Commit LabI...
2
3
4
5
#
# Licensed under The MIT License
# For full copyright and license information, please see the LICENSE.txt
# Redistributions of files must retain the above copyright notice.
07e4c3fb   Etienne Pallier   v4.108.0-3.7.9 - ...
6
# MIT License (https://opensource.org/licenses/mit-license.php)
6c4edfa3   Alexandre   First Commit LabI...
7
8
9
10
11
12
13
14
15
16
17
18

CREATE TABLE i18n (
    id int NOT NULL auto_increment,
    locale varchar(6) NOT NULL,
    model varchar(255) NOT NULL,
    foreign_key int(10) NOT NULL,
    field varchar(255) NOT NULL,
    content text,
    PRIMARY KEY (id),
    UNIQUE INDEX I18N_LOCALE_FIELD(locale, model, foreign_key, field),
    INDEX I18N_FIELD(model, foreign_key, field)
);