You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
727 B
31 lines
727 B
9 years ago
|
/**
|
||
|
* Database schema required by \yii\i18n\DbMessageSource.
|
||
|
*
|
||
|
* @author Dmitry Naumenko <d.naumenko.a@gmail.com>
|
||
|
* @link http://www.yiiframework.com/
|
||
|
* @copyright 2008 Yii Software LLC
|
||
|
* @license http://www.yiiframework.com/license/
|
||
|
* @since 2.0.7
|
||
|
*/
|
||
|
|
||
|
|
||
|
drop table if exists "source_message";
|
||
|
drop table if exists "message";
|
||
|
|
||
|
CREATE TABLE "source_message"
|
||
|
(
|
||
|
"id" integer NOT NULL PRIMARY KEY,
|
||
|
"category" varchar(255),
|
||
|
"message" clob
|
||
|
);
|
||
|
CREATE SEQUENCE "source_message_SEQ";
|
||
|
|
||
|
CREATE TABLE "message"
|
||
|
(
|
||
|
"id" integer NOT NULL,
|
||
|
"language" varchar(16) NOT NULL,
|
||
|
"translation" clob,
|
||
|
primary key ("id", "language"),
|
||
|
foreign key ("id") references "source_message" ("id") on delete cascade
|
||
|
);
|