defuze.me  Client
playlists_migration.cpp
00001 #include "migration_list.hpp"
00002 
00003 using namespace DB;
00004 
00005 void    PlaylistsMigration::up()
00006 {
00007         createTable("playlists", "id integer primary key, name varchar(100) collate nocase, is_dynamic bool, definition text");
00008     exec("CREATE UNIQUE INDEX playlist_id ON playlists(id)");
00009 }
00010 
00011 void    PlaylistsMigration::down()
00012 {
00013     dropTable("playlists");
00014 }