/*
* Generated by Robotoworks Mechanoid
*/
package com.robotoworks.example.movies.db.migrations;
import android.database.sqlite.SQLiteDatabase;
import com.robotoworks.mechanoid.db.SQLiteMigration;
public class DefaultMovieDBMigrationV1 extends SQLiteMigration {
@Override
public void onBeforeUp(SQLiteDatabase db) {}
@Override
public void up(SQLiteDatabase db) {
db.execSQL(
"create table movies ( " +
"_id integer primary key autoincrement, " +
"title text, " +
"description text, " +
"year integer, " +
"unique (title, year) on conflict replace " +
") "
);
}
@Override
public void onAfterUp(SQLiteDatabase db) {}
}