Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

schema-sqlite.sql 849B

12345678910111213141516171819202122232425262728
  1. /**
  2. * Database schema required by \yii\log\DbTarget.
  3. *
  4. * The indexes declared are not required. They are mainly used to improve the performance
  5. * of some queries about message levels and categories. Depending on your actual needs, you may
  6. * want to create additional indexes (e.g. index on `log_time`).
  7. *
  8. * @author Alexander Makarov <sam@rmcreative.ru>
  9. * @link http://www.yiiframework.com/
  10. * @copyright 2008 Yii Software LLC
  11. * @license http://www.yiiframework.com/license/
  12. * @since 2.0.1
  13. */
  14. drop table if exists "log";
  15. create table "log"
  16. (
  17. "id" integer PRIMARY KEY AUTOINCREMENT NOT NULL,
  18. "level" integer,
  19. "category" varchar(255),
  20. "log_time" double,
  21. "prefix" text,
  22. "message" text
  23. );
  24. create index "idx_log_level" on "log" ("level");
  25. create index "idx_log_category" on "log" ("category");