<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog
	xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
	xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.1.xsd http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">

	<changeSet id="add_statistics_json" author="wim">
		<addColumn tableName="statistics">
			<column name="json" type="text" afterColumn="html">
				<constraints nullable="false" />
			</column>
		</addColumn>
	</changeSet>

	<changeSet id="moveShowParticipantsList" author="wim">
		<update tableName="setup">
			<column name="category" value="application" />
			<where>name = 'ShowParticipantList'</where>
		</update>
	</changeSet>
	<changeSet id="moveShowWorkshopSelection" author="wim">
		<update tableName="setup">
			<column name="category" value="application" />
			<where>name = 'ShowWorkshopSelection'</where>
		</update>
	</changeSet>
	<changeSet id="remove_autoselection" author="wim">
		<delete tableName="setup">
			<where>category = 'selection'</where>
		</delete>
	</changeSet>
	
	<changeSet id="otherembassie" author="wim">
		<insert tableName="embassies">
			<column name="id" valueNumeric="-1" />
			<column name="countrycode" valueNumeric="0" />
			<column name="name" value="-- Specify under remarks --"></column>
		</insert>
	</changeSet>
	
	<changeSet id="setup_mailfooter_typo" author="wim">
		<update tableName="setup">
			<column name="value" value="\n\n\n===================================================\nThis mail was sent automatically by the application\nform for AEGEE-Europe statutory events." />
			<column name="default" value="\n\n\n===================================================\nThis mail was sent automatically by the application\nform for AEGEE-Europe statutory events." />
			<where>id = 49</where>
		</update>
	</changeSet>

	<changeSet id="setup_add_CandidateAdditionalRequired" author="wim">
		<insert tableName="setup">
			<column name="id" valueNumeric="249" />
			<column name="category" value="jc" />
			<column name="name" value="CandidateAdditionalRequired" />
			<column name="value" value="1" />
			<column name="regex" value="[int]" />
			<column name="explanation" value="The number of additional candidates required (on top of the number of places) at the deadline to close the position." />
			<column name="ac_view" value="view" />
			<column name="ac_edit" value="view" />
			<column name="ac_audit" value="view" />
			<column name="ac_jc" value="edit" />
			<column name="ac_registration" value="view" />
			<column name="ac_localorg" value="view" />
			<column name="ac_chair" value="view" />
			<column name="default" value="1" />
			<column name="empty" value="no" />
		</insert>
	</changeSet>

	<changeSet id="setup_mailfooter_typo2" author="wim">
		<update tableName="setup">
			<column name="value" value="\n\n\n=====================================================\nThis e-mail was sent automatically by the application\nform for AEGEE-Europe statutory events." />
			<column name="default" value="\n\n\n=====================================================\nThis e-mail was sent automatically by the application\nform for AEGEE-Europe statutory events." />
			<where>id = 49</where>
		</update>
	</changeSet>
</databaseChangeLog>
