diff --git a/source/data/tables.sql b/source/data/tables.sql index 9ccc3433883..105112151ce 100644 --- a/source/data/tables.sql +++ b/source/data/tables.sql @@ -7,7 +7,7 @@ CREATE TABLE attendees ("id" integer, "event_id" integer, "member_id" integer, " DROP TABLE IF EXISTS blast_emails; CREATE TABLE blast_emails ("id" integer, "petition_id" integer, "from_name" CHARACTER VARYING(max), "reply_to_address" CHARACTER VARYING(max), "subject" CHARACTER VARYING(max), "created_at" timestamp without time zone, "updated_at" timestamp without time zone, "recipient_count" integer, "admin_status" CHARACTER VARYING(max), "delivery_status" CHARACTER VARYING(max), "administered_at" timestamp without time zone, "admin_reason" CHARACTER VARYING(max), "type" CHARACTER VARYING(max), "organisation_id" integer, "target_recipients" CHARACTER VARYING(max), "event_id" integer, "deliver_at" timestamp without time zone, "deliver_at_time_zone" CHARACTER VARYING(max), "partnership_id" bigint, "locale" CHARACTER VARYING(max), "reviewer_type" CHARACTER VARYING(max), "reviewer_id" bigint, "author_id" integer, "editor_mode" CHARACTER VARYING(max)); DROP TABLE IF EXISTS calendars; -CREATE TABLE calendars ("id" integer, "slug" CHARACTER VARYING(max), "organisation_id" integer, "created_at" timestamp without time zone, "updated_at" timestamp without time zone, "archived_at" timestamp without time zone, "default_event_title" CHARACTER VARYING(max), "default_event_description" CHARACTER VARYING(max), "default_event_start" timestamp without time zone, "target_collection_id" integer, "auto_approved_events" boolean, "requires_organiser_instructions" boolean, "ask_host_address" boolean, "external_ids" CHARACTER VARYING(max), "disable_event_creation" boolean, "show_target_data_on_event_creation" boolean, "allow_multiple_events_per_constituency" boolean, "default_event_end" timestamp without time zone, "redirect_to" CHARACTER VARYING(max), "launched" boolean, "created_through_wizard" boolean, "current_wizard_step" CHARACTER VARYING(max), "default_event_forum_enabled" boolean, "region_id" bigint, "default_event_image_file_name" CHARACTER VARYING(max), "default_event_image_content_type" CHARACTER VARYING(max), "default_event_image_file_size" bigint, "default_event_image_updated_at" timestamp without time zone, "social_share_image_file_name" CHARACTER VARYING(max), "social_share_image_content_type" CHARACTER VARYING(max), "social_share_image_file_size" bigint, "social_share_image_updated_at" timestamp without time zone, "theme_id" bigint); +CREATE TABLE calendars ("id" integer, "slug" CHARACTER VARYING(max), "organisation_id" integer, "created_at" timestamp without time zone, "updated_at" timestamp without time zone, "archived_at" timestamp without time zone, "default_event_title" CHARACTER VARYING(max), "default_event_description" CHARACTER VARYING(max), "default_event_start" timestamp without time zone, "target_collection_id" integer, "auto_approved_events" boolean, "requires_organiser_instructions" boolean, "ask_host_address" boolean, "external_ids" CHARACTER VARYING(max), "disable_event_creation" boolean, "show_target_data_on_event_creation" boolean, "allow_multiple_events_per_constituency" boolean, "default_event_end" timestamp without time zone, "redirect_to" CHARACTER VARYING(max), "launched" boolean, "created_through_wizard" boolean, "current_wizard_step" CHARACTER VARYING(max), "default_event_forum_enabled" boolean, "region_id" bigint, "default_event_image_file_name" CHARACTER VARYING(max), "default_event_image_content_type" CHARACTER VARYING(max), "default_event_image_file_size" bigint, "default_event_image_updated_at" timestamp without time zone, "social_share_image_file_name" CHARACTER VARYING(max), "social_share_image_content_type" CHARACTER VARYING(max), "social_share_image_file_size" bigint, "social_share_image_updated_at" timestamp without time zone, "theme_id" bigint, "default_event_time_is_local" boolean, "default_event_time_zone" CHARACTER VARYING(max)); DROP TABLE IF EXISTS campaign_admins; CREATE TABLE campaign_admins ("id" integer, "user_id" integer, "invitation_email" CHARACTER VARYING(max), "invitation_token" CHARACTER VARYING(max), "campaign_id" integer, "campaign_type" CHARACTER VARYING(max), "external_ids" CHARACTER VARYING(max), "created_at" timestamp(6) without time zone, "updated_at" timestamp(6) without time zone); DROP TABLE IF EXISTS campaigns_partnerships;