defuze.me  Client
configurations_migration.cpp
00001 /**************************************************************************
00002 ** defuze.me Epitech Innovative Project
00003 **
00004 ** Copyright 2010-2011
00005 **   Athena Calmettes - Jocelyn De La Rosa - Francois Gaillard
00006 **   Adrien Jarthon - Alexandre Moore - Luc Peres - Arnaud Sellier
00007 **
00008 ** All rights reserved.
00009 **************************************************************************/
00010 
00011 #include "migration_list.hpp"
00012 
00013 using namespace DB;
00014 
00015 void    ConfigurationsMigration::up()
00016 {
00017     createTable("configurations", "id int primary key, name varchar(50), author varchar(50)");
00018     exec("insert into configurations values(1, 'Default', 'defuze.me')");
00019 }
00020 
00021 void    ConfigurationsMigration::down()
00022 {
00023     dropTable("configurations");
00024 }