piler/util/db-upgrade-0.20-vs-0.21.sql

19 lines
420 B
MySQL
Raw Normal View History

alter table `sph_index` add column `folder` int default 0;
create table if not exists `folder` (
`id` int not null auto_increment,
`parent_id` int default 0,
`name` char(64) not null unique,
primary key (`id`)
) Engine=InnoDB;
2012-09-02 23:21:41 +02:00
create table if not exists `note` (
2012-08-28 22:00:45 +02:00
`id` bigint unsigned not null,
2012-09-02 23:21:41 +02:00
`uid` int not null,
2012-08-28 22:00:45 +02:00
`note` text default null,
2012-09-02 23:21:41 +02:00
unique(`id`, `uid`),
key (`id`)
2012-08-28 22:00:45 +02:00
) ENGINE=InnoDB;