diff --git a/Gemfile b/Gemfile index ba68e79a7..6833a2cd7 100644 --- a/Gemfile +++ b/Gemfile @@ -63,7 +63,6 @@ gem 'fog-openstack' gem 'pg' gem 'scenic' -gem 'textacular' gem 'rgeo-geojson' gem 'leaflet-rails' diff --git a/Gemfile.lock b/Gemfile.lock index f85d05b05..422928561 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -566,8 +566,6 @@ GEM json (>= 1.4.3) temple (0.7.6) terminal-table (1.5.2) - textacular (4.0.1) - activerecord (>= 3.0, < 5.1) therubyracer (0.12.2) libv8 (~> 3.16.14.0) ref @@ -687,7 +685,6 @@ DEPENDENCIES smart_listing spring spring-commands-rspec - textacular therubyracer timecop turbolinks @@ -699,4 +696,4 @@ DEPENDENCIES will_paginate-bootstrap BUNDLED WITH - 1.12.5 + 1.13.2 diff --git a/app/controllers/backoffice/dossiers_controller.rb b/app/controllers/backoffice/dossiers_controller.rb index b992f6c44..4de0b31a2 100644 --- a/app/controllers/backoffice/dossiers_controller.rb +++ b/app/controllers/backoffice/dossiers_controller.rb @@ -34,10 +34,6 @@ class Backoffice::DossiersController < Backoffice::DossiersListController page: params[:page] ).results - unless @dossier.empty? - @dossier = @dossier.paginate(page: params[:page]) - end - smartlisting_dossier @dossier, 'search' rescue RuntimeError diff --git a/app/models/search.rb b/app/models/search.rb index 34e8d08f1..6b4557677 100644 --- a/app/models/search.rb +++ b/app/models/search.rb @@ -31,8 +31,6 @@ class Search < ActiveRecord::Base end end - #extend Textacular - attr_accessor :gestionnaire attr_accessor :query attr_accessor :page @@ -44,30 +42,27 @@ class Search < ActiveRecord::Base return Search.none end - search_term = self.class.connection.quote(to_tsquery) + search_term = Search.connection.quote(to_tsquery) dossier_ids = @gestionnaire.dossiers .select(:id) .where(archived: false) .where.not(state: "draft") - q = self.class + q = Search .select("DISTINCT(searches.dossier_id)") .select("COALESCE(ts_rank(to_tsvector('french', searches.term::text), to_tsquery('french', #{search_term})), 0) AS rank") .joins(:dossier) .where(dossier_id: dossier_ids) .where("to_tsvector('french', searches.term::text) @@ to_tsquery('french', #{search_term})") .order("rank DESC") - .paginate(page: @page) .preload(:dossier) - begin - q.to_a - rescue ActiveRecord::StatementInvalid - Search.none - else - Results.new(q) + if @page.present? + q = q.paginate(page: @page) end + + Results.new(q) end #def self.refresh diff --git a/app/views/backoffice/dossiers/_list.html.haml b/app/views/backoffice/dossiers/_list.html.haml index 3b6793ef5..e887a2031 100644 --- a/app/views/backoffice/dossiers/_list.html.haml +++ b/app/views/backoffice/dossiers/_list.html.haml @@ -48,4 +48,4 @@ - if smart_listing.empty? %h4.center - Aucun dossier \ No newline at end of file + Aucun dossier diff --git a/db/schema.rb b/db/schema.rb new file mode 100644 index 000000000..7ef1e735e --- /dev/null +++ b/db/schema.rb @@ -0,0 +1,405 @@ +# encoding: UTF-8 +# This file is auto-generated from the current state of the database. Instead +# of editing this file, please use the migrations feature of Active Record to +# incrementally modify your database, and then regenerate this schema definition. +# +# Note that this schema.rb definition is the authoritative source for your +# database schema. If you need to create the application database on another +# system, you should be using db:schema:load, not running all the migrations +# from scratch. The latter is a flawed and unsustainable approach (the more migrations +# you'll amass, the slower it'll run and the greater likelihood for issues). +# +# It's strongly recommended that you check this file into your version control system. + +ActiveRecord::Schema.define(version: 20161102154835) do + + # These are extensions that must be enabled in order to support this database + enable_extension "plpgsql" + + create_table "administrateurs", force: :cascade do |t| + t.string "email", default: "", null: false + t.string "encrypted_password", default: "", null: false + t.string "reset_password_token" + t.datetime "reset_password_sent_at" + t.datetime "remember_created_at" + t.integer "sign_in_count", default: 0, null: false + t.datetime "current_sign_in_at" + t.datetime "last_sign_in_at" + t.inet "current_sign_in_ip" + t.inet "last_sign_in_ip" + t.datetime "created_at" + t.datetime "updated_at" + t.string "api_token" + end + + add_index "administrateurs", ["email"], name: "index_administrateurs_on_email", unique: true, using: :btree + add_index "administrateurs", ["reset_password_token"], name: "index_administrateurs_on_reset_password_token", unique: true, using: :btree + + create_table "administrateurs_gestionnaires", id: false, force: :cascade do |t| + t.integer "administrateur_id" + t.integer "gestionnaire_id" + end + + add_index "administrateurs_gestionnaires", ["administrateur_id"], name: "index_administrateurs_gestionnaires_on_administrateur_id", using: :btree + add_index "administrateurs_gestionnaires", ["gestionnaire_id", "administrateur_id"], name: "unique_couple_administrateur_gestionnaire", unique: true, using: :btree + add_index "administrateurs_gestionnaires", ["gestionnaire_id"], name: "index_administrateurs_gestionnaires_on_gestionnaire_id", using: :btree + + create_table "administrations", force: :cascade do |t| + t.string "email", default: "", null: false + t.string "encrypted_password", default: "", null: false + t.string "reset_password_token" + t.datetime "reset_password_sent_at" + t.datetime "remember_created_at" + t.integer "sign_in_count", default: 0, null: false + t.datetime "current_sign_in_at" + t.datetime "last_sign_in_at" + t.inet "current_sign_in_ip" + t.inet "last_sign_in_ip" + t.datetime "created_at" + t.datetime "updated_at" + end + + add_index "administrations", ["email"], name: "index_administrations_on_email", unique: true, using: :btree + add_index "administrations", ["reset_password_token"], name: "index_administrations_on_reset_password_token", unique: true, using: :btree + + create_table "assign_tos", id: false, force: :cascade do |t| + t.integer "gestionnaire_id" + t.integer "procedure_id" + end + + add_index "assign_tos", ["gestionnaire_id"], name: "index_assign_tos_on_gestionnaire_id", using: :btree + add_index "assign_tos", ["procedure_id"], name: "index_assign_tos_on_procedure_id", using: :btree + + create_table "cadastres", force: :cascade do |t| + t.string "surface_intersection" + t.float "surface_parcelle" + t.string "numero" + t.integer "feuille" + t.string "section" + t.string "code_dep" + t.string "nom_com" + t.string "code_com" + t.string "code_arr" + t.text "geometry" + t.integer "dossier_id" + end + + create_table "cerfas", force: :cascade do |t| + t.string "content" + t.integer "dossier_id" + t.datetime "created_at" + t.integer "user_id" + t.string "original_filename" + t.string "content_secure_token" + end + + add_index "cerfas", ["dossier_id"], name: "index_cerfas_on_dossier_id", using: :btree + + create_table "champs", force: :cascade do |t| + t.string "value" + t.integer "type_de_champ_id" + t.integer "dossier_id" + t.string "type" + end + + add_index "champs", ["dossier_id"], name: "index_champs_on_dossier_id", using: :btree + add_index "champs", ["type_de_champ_id"], name: "index_champs_on_type_de_champ_id", using: :btree + + create_table "commentaires", force: :cascade do |t| + t.string "email" + t.datetime "created_at", null: false + t.string "body" + t.integer "dossier_id" + t.datetime "updated_at", null: false + t.integer "piece_justificative_id" + end + + add_index "commentaires", ["dossier_id"], name: "index_commentaires_on_dossier_id", using: :btree + + create_table "dossiers", force: :cascade do |t| + t.boolean "autorisation_donnees" + t.string "nom_projet" + t.integer "procedure_id" + t.datetime "created_at" + t.datetime "updated_at" + t.string "state" + t.integer "user_id" + t.text "json_latlngs" + t.boolean "archived", default: false + t.boolean "mandataire_social", default: false + t.datetime "deposit_datetime" + end + + add_index "dossiers", ["procedure_id"], name: "index_dossiers_on_procedure_id", using: :btree + add_index "dossiers", ["user_id"], name: "index_dossiers_on_user_id", using: :btree + + create_table "drop_down_lists", force: :cascade do |t| + t.string "value" + t.integer "type_de_champ_id" + end + + add_index "drop_down_lists", ["type_de_champ_id"], name: "index_drop_down_lists_on_type_de_champ_id", using: :btree + + create_table "entreprises", force: :cascade do |t| + t.string "siren" + t.integer "capital_social" + t.string "numero_tva_intracommunautaire" + t.string "forme_juridique" + t.string "forme_juridique_code" + t.string "nom_commercial" + t.string "raison_sociale" + t.string "siret_siege_social" + t.string "code_effectif_entreprise" + t.datetime "date_creation" + t.string "nom" + t.string "prenom" + t.integer "dossier_id" + end + + add_index "entreprises", ["dossier_id"], name: "index_entreprises_on_dossier_id", using: :btree + + create_table "etablissements", force: :cascade do |t| + t.string "siret" + t.boolean "siege_social" + t.string "naf" + t.string "libelle_naf" + t.string "adresse" + t.string "numero_voie" + t.string "type_voie" + t.string "nom_voie" + t.string "complement_adresse" + t.string "code_postal" + t.string "localite" + t.string "code_insee_localite" + t.integer "dossier_id" + t.integer "entreprise_id" + end + + add_index "etablissements", ["dossier_id"], name: "index_etablissements_on_dossier_id", using: :btree + + create_table "exercices", force: :cascade do |t| + t.string "ca" + t.datetime "dateFinExercice" + t.integer "date_fin_exercice_timestamp" + t.integer "etablissement_id" + end + + create_table "follows", force: :cascade do |t| + t.integer "gestionnaire_id" + t.integer "dossier_id" + end + + add_index "follows", ["dossier_id"], name: "index_follows_on_dossier_id", using: :btree + add_index "follows", ["gestionnaire_id"], name: "index_follows_on_gestionnaire_id", using: :btree + + create_table "france_connect_informations", force: :cascade do |t| + t.string "gender" + t.string "given_name" + t.string "family_name" + t.date "birthdate" + t.string "birthplace" + t.string "france_connect_particulier_id" + t.integer "user_id" + t.string "email_france_connect" + end + + add_index "france_connect_informations", ["user_id"], name: "index_france_connect_informations_on_user_id", using: :btree + + create_table "gestionnaires", force: :cascade do |t| + t.string "email", default: "", null: false + t.string "encrypted_password", default: "", null: false + t.string "reset_password_token" + t.datetime "reset_password_sent_at" + t.datetime "remember_created_at" + t.integer "sign_in_count", default: 0, null: false + t.datetime "current_sign_in_at" + t.datetime "last_sign_in_at" + t.inet "current_sign_in_ip" + t.inet "last_sign_in_ip" + t.datetime "created_at" + t.datetime "updated_at" + t.integer "procedure_filter" + end + + add_index "gestionnaires", ["email"], name: "index_gestionnaires_on_email", unique: true, using: :btree + add_index "gestionnaires", ["reset_password_token"], name: "index_gestionnaires_on_reset_password_token", unique: true, using: :btree + + create_table "individuals", force: :cascade do |t| + t.string "nom" + t.string "prenom" + t.string "birthdate" + t.integer "dossier_id" + t.string "gender" + end + + add_index "individuals", ["dossier_id"], name: "index_individuals_on_dossier_id", using: :btree + + create_table "invites", force: :cascade do |t| + t.string "email" + t.string "email_sender" + t.integer "dossier_id" + t.integer "user_id" + t.string "type", default: "InviteGestionnaire" + end + + create_table "mail_templates", force: :cascade do |t| + t.string "object" + t.text "body" + t.string "type" + t.integer "procedure_id" + end + + create_table "module_api_cartos", force: :cascade do |t| + t.integer "procedure_id" + t.boolean "use_api_carto", default: false + t.boolean "quartiers_prioritaires", default: false + t.boolean "cadastre", default: false + end + + add_index "module_api_cartos", ["procedure_id"], name: "index_module_api_cartos_on_procedure_id", unique: true, using: :btree + + create_table "pieces_justificatives", force: :cascade do |t| + t.string "content" + t.integer "dossier_id" + t.integer "type_de_piece_justificative_id" + t.datetime "created_at" + t.integer "user_id" + t.string "original_filename" + t.string "content_secure_token" + end + + add_index "pieces_justificatives", ["dossier_id"], name: "index_pieces_justificatives_on_dossier_id", using: :btree + add_index "pieces_justificatives", ["type_de_piece_justificative_id"], name: "index_pieces_justificatives_on_type_de_piece_justificative_id", using: :btree + + create_table "preference_list_dossiers", force: :cascade do |t| + t.string "libelle" + t.string "table" + t.string "attr" + t.string "attr_decorate" + t.string "bootstrap_lg" + t.string "order" + t.string "filter" + t.integer "gestionnaire_id" + t.integer "procedure_id" + end + + create_table "preference_smart_listing_pages", force: :cascade do |t| + t.string "liste" + t.integer "page" + t.integer "procedure_id" + t.integer "gestionnaire_id" + end + + create_table "procedure_paths", force: :cascade do |t| + t.string "path", limit: 30 + t.integer "procedure_id" + t.integer "administrateur_id" + end + + add_index "procedure_paths", ["path"], name: "index_procedure_paths_on_path", using: :btree + + create_table "procedures", force: :cascade do |t| + t.string "libelle" + t.string "description" + t.string "organisation" + t.string "direction" + t.string "lien_demarche" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.boolean "test" + t.integer "administrateur_id" + t.boolean "archived", default: false + t.boolean "euro_flag", default: false + t.string "logo" + t.boolean "cerfa_flag", default: false + t.string "logo_secure_token" + t.boolean "published", default: false, null: false + t.string "lien_site_web" + t.string "lien_notice" + t.boolean "for_individual", default: false + t.boolean "individual_with_siret", default: false + end + + create_table "quartier_prioritaires", force: :cascade do |t| + t.string "code" + t.string "nom" + t.string "commune" + t.text "geometry" + t.integer "dossier_id" + end + + create_table "rna_informations", force: :cascade do |t| + t.string "association_id" + t.string "titre" + t.text "objet" + t.date "date_creation" + t.date "date_declaration" + t.date "date_publication" + t.integer "entreprise_id" + end + + add_index "rna_informations", ["entreprise_id"], name: "index_rna_informations_on_entreprise_id", using: :btree + + create_table "types_de_champ", force: :cascade do |t| + t.string "libelle" + t.string "type_champ" + t.integer "order_place" + t.integer "procedure_id" + t.text "description" + t.boolean "mandatory", default: false + t.string "type" + end + + create_table "types_de_piece_justificative", force: :cascade do |t| + t.string "libelle" + t.string "description" + t.boolean "api_entreprise", default: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.integer "procedure_id" + t.integer "order_place" + end + + create_table "users", force: :cascade do |t| + t.string "email", default: "", null: false + t.string "encrypted_password", default: "", null: false + t.string "reset_password_token" + t.datetime "reset_password_sent_at" + t.datetime "remember_created_at" + t.integer "sign_in_count", default: 0, null: false + t.datetime "current_sign_in_at" + t.datetime "last_sign_in_at" + t.inet "current_sign_in_ip" + t.inet "last_sign_in_ip" + t.datetime "created_at" + t.datetime "updated_at" + t.string "siret" + t.string "loged_in_with_france_connect", default: "false" + end + + add_index "users", ["email"], name: "index_users_on_email", unique: true, using: :btree + add_index "users", ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true, using: :btree + + add_foreign_key "cerfas", "dossiers" + add_foreign_key "commentaires", "dossiers" + add_foreign_key "dossiers", "users" + add_foreign_key "procedure_paths", "administrateurs" + add_foreign_key "procedure_paths", "procedures" + + create_view :searches, sql_definition: <<-SQL + SELECT dossiers.id AS dossier_id, + (((((((((((((((((((((((((((((((((((((((((((((((((((((((COALESCE(users.email, ''::character varying))::text || ' '::text) || (COALESCE(france_connect_informations.given_name, ''::character varying))::text) || ' '::text) || (COALESCE(france_connect_informations.family_name, ''::character varying))::text) || ' '::text) || (COALESCE(cerfas.content, ''::character varying))::text) || ' '::text) || (COALESCE(champs.value, ''::character varying))::text) || ' '::text) || (COALESCE(drop_down_lists.value, ''::character varying))::text) || ' '::text) || (COALESCE(entreprises.siren, ''::character varying))::text) || ' '::text) || (COALESCE(entreprises.numero_tva_intracommunautaire, ''::character varying))::text) || ' '::text) || (COALESCE(entreprises.forme_juridique, ''::character varying))::text) || ' '::text) || (COALESCE(entreprises.forme_juridique_code, ''::character varying))::text) || ' '::text) || (COALESCE(entreprises.nom_commercial, ''::character varying))::text) || ' '::text) || (COALESCE(entreprises.raison_sociale, ''::character varying))::text) || ' '::text) || (COALESCE(entreprises.siret_siege_social, ''::character varying))::text) || ' '::text) || (COALESCE(entreprises.nom, ''::character varying))::text) || ' '::text) || (COALESCE(entreprises.prenom, ''::character varying))::text) || ' '::text) || (COALESCE(rna_informations.association_id, ''::character varying))::text) || ' '::text) || (COALESCE(rna_informations.titre, ''::character varying))::text) || ' '::text) || COALESCE(rna_informations.objet, ''::text)) || ' '::text) || (COALESCE(etablissements.siret, ''::character varying))::text) || ' '::text) || (COALESCE(etablissements.naf, ''::character varying))::text) || ' '::text) || (COALESCE(etablissements.libelle_naf, ''::character varying))::text) || ' '::text) || (COALESCE(etablissements.adresse, ''::character varying))::text) || ' '::text) || (COALESCE(etablissements.code_postal, ''::character varying))::text) || ' '::text) || (COALESCE(etablissements.localite, ''::character varying))::text) || ' '::text) || (COALESCE(etablissements.code_insee_localite, ''::character varying))::text) || ' '::text) || (COALESCE(individuals.nom, ''::character varying))::text) || ' '::text) || (COALESCE(individuals.prenom, ''::character varying))::text) || ' '::text) || (COALESCE(pieces_justificatives.content, ''::character varying))::text) AS term + FROM ((((((((((dossiers + JOIN users ON ((users.id = dossiers.user_id))) + LEFT JOIN france_connect_informations ON ((france_connect_informations.user_id = dossiers.user_id))) + LEFT JOIN cerfas ON ((cerfas.dossier_id = dossiers.id))) + LEFT JOIN champs ON ((champs.dossier_id = dossiers.id))) + LEFT JOIN drop_down_lists ON ((drop_down_lists.type_de_champ_id = champs.type_de_champ_id))) + LEFT JOIN entreprises ON ((entreprises.dossier_id = dossiers.id))) + LEFT JOIN rna_informations ON ((rna_informations.entreprise_id = entreprises.id))) + LEFT JOIN etablissements ON ((etablissements.dossier_id = dossiers.id))) + LEFT JOIN individuals ON ((individuals.dossier_id = dossiers.id))) + LEFT JOIN pieces_justificatives ON ((pieces_justificatives.dossier_id = dossiers.id))); + SQL + +end diff --git a/db/structure.sql b/db/structure.sql deleted file mode 100644 index 8b12f3907..000000000 --- a/db/structure.sql +++ /dev/null @@ -1,2057 +0,0 @@ --- --- PostgreSQL database dump --- - --- Dumped from database version 9.5.4 --- Dumped by pg_dump version 9.5.4 - -SET statement_timeout = 0; -SET lock_timeout = 0; -SET client_encoding = 'UTF8'; -SET standard_conforming_strings = on; -SET check_function_bodies = false; -SET client_min_messages = warning; -SET row_security = off; - --- --- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: - --- - -CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog; - - --- --- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner: - --- - -COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language'; - - -SET search_path = public, pg_catalog; - -SET default_tablespace = ''; - -SET default_with_oids = false; - --- --- Name: administrateurs; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE administrateurs ( - id integer NOT NULL, - email character varying DEFAULT ''::character varying NOT NULL, - encrypted_password character varying DEFAULT ''::character varying NOT NULL, - reset_password_token character varying, - reset_password_sent_at timestamp without time zone, - remember_created_at timestamp without time zone, - sign_in_count integer DEFAULT 0 NOT NULL, - current_sign_in_at timestamp without time zone, - last_sign_in_at timestamp without time zone, - current_sign_in_ip inet, - last_sign_in_ip inet, - created_at timestamp without time zone, - updated_at timestamp without time zone, - api_token character varying -); - - --- --- Name: administrateurs_gestionnaires; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE administrateurs_gestionnaires ( - administrateur_id integer, - gestionnaire_id integer -); - - --- --- Name: administrateurs_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE administrateurs_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - --- --- Name: administrateurs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE administrateurs_id_seq OWNED BY administrateurs.id; - - --- --- Name: administrations; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE administrations ( - id integer NOT NULL, - email character varying DEFAULT ''::character varying NOT NULL, - encrypted_password character varying DEFAULT ''::character varying NOT NULL, - reset_password_token character varying, - reset_password_sent_at timestamp without time zone, - remember_created_at timestamp without time zone, - sign_in_count integer DEFAULT 0 NOT NULL, - current_sign_in_at timestamp without time zone, - last_sign_in_at timestamp without time zone, - current_sign_in_ip inet, - last_sign_in_ip inet, - created_at timestamp without time zone, - updated_at timestamp without time zone -); - - --- --- Name: administrations_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE administrations_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - --- --- Name: administrations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE administrations_id_seq OWNED BY administrations.id; - - --- --- Name: assign_tos; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE assign_tos ( - gestionnaire_id integer, - procedure_id integer -); - - --- --- Name: cadastres; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE cadastres ( - id integer NOT NULL, - surface_intersection character varying, - surface_parcelle double precision, - numero character varying, - feuille integer, - section character varying, - code_dep character varying, - nom_com character varying, - code_com character varying, - code_arr character varying, - geometry text, - dossier_id integer -); - - --- --- Name: cadastres_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE cadastres_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - --- --- Name: cadastres_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE cadastres_id_seq OWNED BY cadastres.id; - - --- --- Name: cerfas; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE cerfas ( - id integer NOT NULL, - content character varying, - dossier_id integer, - created_at timestamp without time zone, - user_id integer, - original_filename character varying, - content_secure_token character varying -); - - --- --- Name: cerfas_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE cerfas_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - --- --- Name: cerfas_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE cerfas_id_seq OWNED BY cerfas.id; - - --- --- Name: champs; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE champs ( - id integer NOT NULL, - value character varying, - type_de_champ_id integer, - dossier_id integer, - type character varying -); - - --- --- Name: champs_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE champs_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - --- --- Name: champs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE champs_id_seq OWNED BY champs.id; - - --- --- Name: commentaires; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE commentaires ( - id integer NOT NULL, - email character varying, - created_at timestamp without time zone NOT NULL, - body character varying, - dossier_id integer, - updated_at timestamp without time zone NOT NULL, - piece_justificative_id integer -); - - --- --- Name: commentaires_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE commentaires_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - --- --- Name: commentaires_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE commentaires_id_seq OWNED BY commentaires.id; - - --- --- Name: dossiers; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE dossiers ( - id integer NOT NULL, - autorisation_donnees boolean, - nom_projet character varying, - procedure_id integer, - created_at timestamp without time zone, - updated_at timestamp without time zone, - state character varying, - user_id integer, - json_latlngs text, - archived boolean DEFAULT false, - mandataire_social boolean DEFAULT false, - deposit_datetime timestamp without time zone -); - - --- --- Name: dossiers_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE dossiers_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - --- --- Name: dossiers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE dossiers_id_seq OWNED BY dossiers.id; - - --- --- Name: drop_down_lists; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE drop_down_lists ( - id integer NOT NULL, - value character varying, - type_de_champ_id integer -); - - --- --- Name: drop_down_lists_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE drop_down_lists_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - --- --- Name: drop_down_lists_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE drop_down_lists_id_seq OWNED BY drop_down_lists.id; - - --- --- Name: entreprises; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE entreprises ( - id integer NOT NULL, - siren character varying, - capital_social integer, - numero_tva_intracommunautaire character varying, - forme_juridique character varying, - forme_juridique_code character varying, - nom_commercial character varying, - raison_sociale character varying, - siret_siege_social character varying, - code_effectif_entreprise character varying, - date_creation timestamp without time zone, - nom character varying, - prenom character varying, - dossier_id integer -); - - --- --- Name: entreprises_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE entreprises_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - --- --- Name: entreprises_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE entreprises_id_seq OWNED BY entreprises.id; - - --- --- Name: etablissements; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE etablissements ( - id integer NOT NULL, - siret character varying, - siege_social boolean, - naf character varying, - libelle_naf character varying, - adresse character varying, - numero_voie character varying, - type_voie character varying, - nom_voie character varying, - complement_adresse character varying, - code_postal character varying, - localite character varying, - code_insee_localite character varying, - dossier_id integer, - entreprise_id integer -); - - --- --- Name: etablissements_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE etablissements_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - --- --- Name: etablissements_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE etablissements_id_seq OWNED BY etablissements.id; - - --- --- Name: exercices; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE exercices ( - id integer NOT NULL, - ca character varying, - "dateFinExercice" timestamp without time zone, - date_fin_exercice_timestamp integer, - etablissement_id integer -); - - --- --- Name: exercices_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE exercices_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - --- --- Name: exercices_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE exercices_id_seq OWNED BY exercices.id; - - --- --- Name: follows; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE follows ( - id integer NOT NULL, - gestionnaire_id integer, - dossier_id integer -); - - --- --- Name: follows_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE follows_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - --- --- Name: follows_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE follows_id_seq OWNED BY follows.id; - - --- --- Name: france_connect_informations; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE france_connect_informations ( - id integer NOT NULL, - gender character varying, - given_name character varying, - family_name character varying, - birthdate date, - birthplace character varying, - france_connect_particulier_id character varying, - user_id integer, - email_france_connect character varying -); - - --- --- Name: france_connect_informations_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE france_connect_informations_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - --- --- Name: france_connect_informations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE france_connect_informations_id_seq OWNED BY france_connect_informations.id; - - --- --- Name: gestionnaires; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE gestionnaires ( - id integer NOT NULL, - email character varying DEFAULT ''::character varying NOT NULL, - encrypted_password character varying DEFAULT ''::character varying NOT NULL, - reset_password_token character varying, - reset_password_sent_at timestamp without time zone, - remember_created_at timestamp without time zone, - sign_in_count integer DEFAULT 0 NOT NULL, - current_sign_in_at timestamp without time zone, - last_sign_in_at timestamp without time zone, - current_sign_in_ip inet, - last_sign_in_ip inet, - created_at timestamp without time zone, - updated_at timestamp without time zone, - procedure_filter integer -); - - --- --- Name: gestionnaires_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE gestionnaires_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - --- --- Name: gestionnaires_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE gestionnaires_id_seq OWNED BY gestionnaires.id; - - --- --- Name: individuals; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE individuals ( - id integer NOT NULL, - nom character varying, - prenom character varying, - birthdate character varying, - dossier_id integer, - gender character varying -); - - --- --- Name: individuals_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE individuals_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - --- --- Name: individuals_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE individuals_id_seq OWNED BY individuals.id; - - --- --- Name: invites; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE invites ( - id integer NOT NULL, - email character varying, - email_sender character varying, - dossier_id integer, - user_id integer, - type character varying DEFAULT 'InviteGestionnaire'::character varying -); - - --- --- Name: invites_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE invites_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - --- --- Name: invites_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE invites_id_seq OWNED BY invites.id; - - --- --- Name: mail_templates; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE mail_templates ( - id integer NOT NULL, - object character varying, - body text, - type character varying, - procedure_id integer -); - - --- --- Name: mail_templates_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE mail_templates_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - --- --- Name: mail_templates_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE mail_templates_id_seq OWNED BY mail_templates.id; - - --- --- Name: module_api_cartos; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE module_api_cartos ( - id integer NOT NULL, - procedure_id integer, - use_api_carto boolean DEFAULT false, - quartiers_prioritaires boolean DEFAULT false, - cadastre boolean DEFAULT false -); - - --- --- Name: module_api_cartos_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE module_api_cartos_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - --- --- Name: module_api_cartos_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE module_api_cartos_id_seq OWNED BY module_api_cartos.id; - - --- --- Name: pieces_justificatives; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE pieces_justificatives ( - id integer NOT NULL, - content character varying, - dossier_id integer, - type_de_piece_justificative_id integer, - created_at timestamp without time zone, - user_id integer, - original_filename character varying, - content_secure_token character varying -); - - --- --- Name: pieces_justificatives_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE pieces_justificatives_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - --- --- Name: pieces_justificatives_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE pieces_justificatives_id_seq OWNED BY pieces_justificatives.id; - - --- --- Name: preference_list_dossiers; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE preference_list_dossiers ( - id integer NOT NULL, - libelle character varying, - "table" character varying, - attr character varying, - attr_decorate character varying, - bootstrap_lg character varying, - "order" character varying, - filter character varying, - gestionnaire_id integer, - procedure_id integer -); - - --- --- Name: preference_list_dossiers_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE preference_list_dossiers_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - --- --- Name: preference_list_dossiers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE preference_list_dossiers_id_seq OWNED BY preference_list_dossiers.id; - - --- --- Name: preference_smart_listing_pages; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE preference_smart_listing_pages ( - id integer NOT NULL, - liste character varying, - page integer, - procedure_id integer, - gestionnaire_id integer -); - - --- --- Name: preference_smart_listing_pages_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE preference_smart_listing_pages_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - --- --- Name: preference_smart_listing_pages_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE preference_smart_listing_pages_id_seq OWNED BY preference_smart_listing_pages.id; - - --- --- Name: procedure_paths; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE procedure_paths ( - id integer NOT NULL, - path character varying(30), - procedure_id integer, - administrateur_id integer -); - - --- --- Name: procedure_paths_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE procedure_paths_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - --- --- Name: procedure_paths_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE procedure_paths_id_seq OWNED BY procedure_paths.id; - - --- --- Name: procedures; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE procedures ( - id integer NOT NULL, - libelle character varying, - description character varying, - organisation character varying, - direction character varying, - lien_demarche character varying, - created_at timestamp without time zone NOT NULL, - updated_at timestamp without time zone NOT NULL, - test boolean, - administrateur_id integer, - archived boolean DEFAULT false, - euro_flag boolean DEFAULT false, - logo character varying, - cerfa_flag boolean DEFAULT false, - logo_secure_token character varying, - published boolean DEFAULT false NOT NULL, - lien_site_web character varying, - lien_notice character varying, - for_individual boolean DEFAULT false, - individual_with_siret boolean DEFAULT false -); - - --- --- Name: procedures_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE procedures_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - --- --- Name: procedures_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE procedures_id_seq OWNED BY procedures.id; - - --- --- Name: quartier_prioritaires; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE quartier_prioritaires ( - id integer NOT NULL, - code character varying, - nom character varying, - commune character varying, - geometry text, - dossier_id integer -); - - --- --- Name: quartier_prioritaires_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE quartier_prioritaires_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - --- --- Name: quartier_prioritaires_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE quartier_prioritaires_id_seq OWNED BY quartier_prioritaires.id; - - --- --- Name: rna_informations; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE rna_informations ( - id integer NOT NULL, - association_id character varying, - titre character varying, - objet text, - date_creation date, - date_declaration date, - date_publication date, - entreprise_id integer -); - - --- --- Name: rna_informations_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE rna_informations_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - --- --- Name: rna_informations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE rna_informations_id_seq OWNED BY rna_informations.id; - - --- --- Name: schema_migrations; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE schema_migrations ( - version character varying NOT NULL -); - - --- --- Name: users; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE users ( - id integer NOT NULL, - email character varying DEFAULT ''::character varying NOT NULL, - encrypted_password character varying DEFAULT ''::character varying NOT NULL, - reset_password_token character varying, - reset_password_sent_at timestamp without time zone, - remember_created_at timestamp without time zone, - sign_in_count integer DEFAULT 0 NOT NULL, - current_sign_in_at timestamp without time zone, - last_sign_in_at timestamp without time zone, - current_sign_in_ip inet, - last_sign_in_ip inet, - created_at timestamp without time zone, - updated_at timestamp without time zone, - siret character varying, - loged_in_with_france_connect character varying DEFAULT false -); - - --- --- Name: searches; Type: VIEW; Schema: public; Owner: - --- - -CREATE VIEW searches AS - SELECT dossiers.id AS dossier_id, - (((((((((((((((((((((((((((((((((((((((((((((((((((((((COALESCE(users.email, ''::character varying))::text || ' '::text) || (COALESCE(france_connect_informations.given_name, ''::character varying))::text) || ' '::text) || (COALESCE(france_connect_informations.family_name, ''::character varying))::text) || ' '::text) || (COALESCE(cerfas.content, ''::character varying))::text) || ' '::text) || (COALESCE(champs.value, ''::character varying))::text) || ' '::text) || (COALESCE(drop_down_lists.value, ''::character varying))::text) || ' '::text) || (COALESCE(entreprises.siren, ''::character varying))::text) || ' '::text) || (COALESCE(entreprises.numero_tva_intracommunautaire, ''::character varying))::text) || ' '::text) || (COALESCE(entreprises.forme_juridique, ''::character varying))::text) || ' '::text) || (COALESCE(entreprises.forme_juridique_code, ''::character varying))::text) || ' '::text) || (COALESCE(entreprises.nom_commercial, ''::character varying))::text) || ' '::text) || (COALESCE(entreprises.raison_sociale, ''::character varying))::text) || ' '::text) || (COALESCE(entreprises.siret_siege_social, ''::character varying))::text) || ' '::text) || (COALESCE(entreprises.nom, ''::character varying))::text) || ' '::text) || (COALESCE(entreprises.prenom, ''::character varying))::text) || ' '::text) || (COALESCE(rna_informations.association_id, ''::character varying))::text) || ' '::text) || (COALESCE(rna_informations.titre, ''::character varying))::text) || ' '::text) || COALESCE(rna_informations.objet, ''::text)) || ' '::text) || (COALESCE(etablissements.siret, ''::character varying))::text) || ' '::text) || (COALESCE(etablissements.naf, ''::character varying))::text) || ' '::text) || (COALESCE(etablissements.libelle_naf, ''::character varying))::text) || ' '::text) || (COALESCE(etablissements.adresse, ''::character varying))::text) || ' '::text) || (COALESCE(etablissements.code_postal, ''::character varying))::text) || ' '::text) || (COALESCE(etablissements.localite, ''::character varying))::text) || ' '::text) || (COALESCE(etablissements.code_insee_localite, ''::character varying))::text) || ' '::text) || (COALESCE(individuals.nom, ''::character varying))::text) || ' '::text) || (COALESCE(individuals.prenom, ''::character varying))::text) || ' '::text) || (COALESCE(pieces_justificatives.content, ''::character varying))::text) AS term - FROM ((((((((((dossiers - JOIN users ON ((users.id = dossiers.user_id))) - LEFT JOIN france_connect_informations ON ((france_connect_informations.user_id = dossiers.user_id))) - LEFT JOIN cerfas ON ((cerfas.dossier_id = dossiers.id))) - LEFT JOIN champs ON ((champs.dossier_id = dossiers.id))) - LEFT JOIN drop_down_lists ON ((drop_down_lists.type_de_champ_id = champs.type_de_champ_id))) - LEFT JOIN entreprises ON ((entreprises.dossier_id = dossiers.id))) - LEFT JOIN rna_informations ON ((rna_informations.entreprise_id = entreprises.id))) - LEFT JOIN etablissements ON ((etablissements.dossier_id = dossiers.id))) - LEFT JOIN individuals ON ((individuals.dossier_id = dossiers.id))) - LEFT JOIN pieces_justificatives ON ((pieces_justificatives.dossier_id = dossiers.id))); - - --- --- Name: types_de_champ; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE types_de_champ ( - id integer NOT NULL, - libelle character varying, - type_champ character varying, - order_place integer, - procedure_id integer, - description text, - mandatory boolean DEFAULT false, - type character varying -); - - --- --- Name: types_de_champ_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE types_de_champ_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - --- --- Name: types_de_champ_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE types_de_champ_id_seq OWNED BY types_de_champ.id; - - --- --- Name: types_de_piece_justificative; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE types_de_piece_justificative ( - id integer NOT NULL, - libelle character varying, - description character varying, - api_entreprise boolean DEFAULT false, - created_at timestamp without time zone NOT NULL, - updated_at timestamp without time zone NOT NULL, - procedure_id integer, - order_place integer -); - - --- --- Name: types_de_piece_justificative_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE types_de_piece_justificative_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - --- --- Name: types_de_piece_justificative_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE types_de_piece_justificative_id_seq OWNED BY types_de_piece_justificative.id; - - --- --- Name: users_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE users_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - --- --- Name: users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE users_id_seq OWNED BY users.id; - - --- --- Name: id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY administrateurs ALTER COLUMN id SET DEFAULT nextval('administrateurs_id_seq'::regclass); - - --- --- Name: id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY administrations ALTER COLUMN id SET DEFAULT nextval('administrations_id_seq'::regclass); - - --- --- Name: id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY cadastres ALTER COLUMN id SET DEFAULT nextval('cadastres_id_seq'::regclass); - - --- --- Name: id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY cerfas ALTER COLUMN id SET DEFAULT nextval('cerfas_id_seq'::regclass); - - --- --- Name: id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY champs ALTER COLUMN id SET DEFAULT nextval('champs_id_seq'::regclass); - - --- --- Name: id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY commentaires ALTER COLUMN id SET DEFAULT nextval('commentaires_id_seq'::regclass); - - --- --- Name: id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY dossiers ALTER COLUMN id SET DEFAULT nextval('dossiers_id_seq'::regclass); - - --- --- Name: id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY drop_down_lists ALTER COLUMN id SET DEFAULT nextval('drop_down_lists_id_seq'::regclass); - - --- --- Name: id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY entreprises ALTER COLUMN id SET DEFAULT nextval('entreprises_id_seq'::regclass); - - --- --- Name: id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY etablissements ALTER COLUMN id SET DEFAULT nextval('etablissements_id_seq'::regclass); - - --- --- Name: id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY exercices ALTER COLUMN id SET DEFAULT nextval('exercices_id_seq'::regclass); - - --- --- Name: id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY follows ALTER COLUMN id SET DEFAULT nextval('follows_id_seq'::regclass); - - --- --- Name: id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY france_connect_informations ALTER COLUMN id SET DEFAULT nextval('france_connect_informations_id_seq'::regclass); - - --- --- Name: id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY gestionnaires ALTER COLUMN id SET DEFAULT nextval('gestionnaires_id_seq'::regclass); - - --- --- Name: id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY individuals ALTER COLUMN id SET DEFAULT nextval('individuals_id_seq'::regclass); - - --- --- Name: id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY invites ALTER COLUMN id SET DEFAULT nextval('invites_id_seq'::regclass); - - --- --- Name: id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY mail_templates ALTER COLUMN id SET DEFAULT nextval('mail_templates_id_seq'::regclass); - - --- --- Name: id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY module_api_cartos ALTER COLUMN id SET DEFAULT nextval('module_api_cartos_id_seq'::regclass); - - --- --- Name: id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY pieces_justificatives ALTER COLUMN id SET DEFAULT nextval('pieces_justificatives_id_seq'::regclass); - - --- --- Name: id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY preference_list_dossiers ALTER COLUMN id SET DEFAULT nextval('preference_list_dossiers_id_seq'::regclass); - - --- --- Name: id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY preference_smart_listing_pages ALTER COLUMN id SET DEFAULT nextval('preference_smart_listing_pages_id_seq'::regclass); - - --- --- Name: id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY procedure_paths ALTER COLUMN id SET DEFAULT nextval('procedure_paths_id_seq'::regclass); - - --- --- Name: id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY procedures ALTER COLUMN id SET DEFAULT nextval('procedures_id_seq'::regclass); - - --- --- Name: id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY quartier_prioritaires ALTER COLUMN id SET DEFAULT nextval('quartier_prioritaires_id_seq'::regclass); - - --- --- Name: id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY rna_informations ALTER COLUMN id SET DEFAULT nextval('rna_informations_id_seq'::regclass); - - --- --- Name: id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY types_de_champ ALTER COLUMN id SET DEFAULT nextval('types_de_champ_id_seq'::regclass); - - --- --- Name: id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY types_de_piece_justificative ALTER COLUMN id SET DEFAULT nextval('types_de_piece_justificative_id_seq'::regclass); - - --- --- Name: id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY users ALTER COLUMN id SET DEFAULT nextval('users_id_seq'::regclass); - - --- --- Name: administrateurs_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY administrateurs - ADD CONSTRAINT administrateurs_pkey PRIMARY KEY (id); - - --- --- Name: administrations_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY administrations - ADD CONSTRAINT administrations_pkey PRIMARY KEY (id); - - --- --- Name: cadastres_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY cadastres - ADD CONSTRAINT cadastres_pkey PRIMARY KEY (id); - - --- --- Name: cerfas_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY cerfas - ADD CONSTRAINT cerfas_pkey PRIMARY KEY (id); - - --- --- Name: champs_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY champs - ADD CONSTRAINT champs_pkey PRIMARY KEY (id); - - --- --- Name: commentaires_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY commentaires - ADD CONSTRAINT commentaires_pkey PRIMARY KEY (id); - - --- --- Name: dossiers_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY dossiers - ADD CONSTRAINT dossiers_pkey PRIMARY KEY (id); - - --- --- Name: drop_down_lists_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY drop_down_lists - ADD CONSTRAINT drop_down_lists_pkey PRIMARY KEY (id); - - --- --- Name: entreprises_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY entreprises - ADD CONSTRAINT entreprises_pkey PRIMARY KEY (id); - - --- --- Name: etablissements_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY etablissements - ADD CONSTRAINT etablissements_pkey PRIMARY KEY (id); - - --- --- Name: exercices_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY exercices - ADD CONSTRAINT exercices_pkey PRIMARY KEY (id); - - --- --- Name: follows_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY follows - ADD CONSTRAINT follows_pkey PRIMARY KEY (id); - - --- --- Name: france_connect_informations_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY france_connect_informations - ADD CONSTRAINT france_connect_informations_pkey PRIMARY KEY (id); - - --- --- Name: gestionnaires_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY gestionnaires - ADD CONSTRAINT gestionnaires_pkey PRIMARY KEY (id); - - --- --- Name: individuals_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY individuals - ADD CONSTRAINT individuals_pkey PRIMARY KEY (id); - - --- --- Name: invites_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY invites - ADD CONSTRAINT invites_pkey PRIMARY KEY (id); - - --- --- Name: mail_templates_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY mail_templates - ADD CONSTRAINT mail_templates_pkey PRIMARY KEY (id); - - --- --- Name: module_api_cartos_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY module_api_cartos - ADD CONSTRAINT module_api_cartos_pkey PRIMARY KEY (id); - - --- --- Name: pieces_justificatives_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY pieces_justificatives - ADD CONSTRAINT pieces_justificatives_pkey PRIMARY KEY (id); - - --- --- Name: preference_list_dossiers_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY preference_list_dossiers - ADD CONSTRAINT preference_list_dossiers_pkey PRIMARY KEY (id); - - --- --- Name: preference_smart_listing_pages_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY preference_smart_listing_pages - ADD CONSTRAINT preference_smart_listing_pages_pkey PRIMARY KEY (id); - - --- --- Name: procedure_paths_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY procedure_paths - ADD CONSTRAINT procedure_paths_pkey PRIMARY KEY (id); - - --- --- Name: procedures_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY procedures - ADD CONSTRAINT procedures_pkey PRIMARY KEY (id); - - --- --- Name: quartier_prioritaires_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY quartier_prioritaires - ADD CONSTRAINT quartier_prioritaires_pkey PRIMARY KEY (id); - - --- --- Name: rna_informations_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY rna_informations - ADD CONSTRAINT rna_informations_pkey PRIMARY KEY (id); - - --- --- Name: types_de_champ_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY types_de_champ - ADD CONSTRAINT types_de_champ_pkey PRIMARY KEY (id); - - --- --- Name: types_de_piece_justificative_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY types_de_piece_justificative - ADD CONSTRAINT types_de_piece_justificative_pkey PRIMARY KEY (id); - - --- --- Name: users_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY users - ADD CONSTRAINT users_pkey PRIMARY KEY (id); - - --- --- Name: index_administrateurs_gestionnaires_on_administrateur_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_administrateurs_gestionnaires_on_administrateur_id ON administrateurs_gestionnaires USING btree (administrateur_id); - - --- --- Name: index_administrateurs_gestionnaires_on_gestionnaire_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_administrateurs_gestionnaires_on_gestionnaire_id ON administrateurs_gestionnaires USING btree (gestionnaire_id); - - --- --- Name: index_administrateurs_on_email; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_administrateurs_on_email ON administrateurs USING btree (email); - - --- --- Name: index_administrateurs_on_reset_password_token; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_administrateurs_on_reset_password_token ON administrateurs USING btree (reset_password_token); - - --- --- Name: index_administrations_on_email; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_administrations_on_email ON administrations USING btree (email); - - --- --- Name: index_administrations_on_reset_password_token; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_administrations_on_reset_password_token ON administrations USING btree (reset_password_token); - - --- --- Name: index_assign_tos_on_gestionnaire_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_assign_tos_on_gestionnaire_id ON assign_tos USING btree (gestionnaire_id); - - --- --- Name: index_assign_tos_on_procedure_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_assign_tos_on_procedure_id ON assign_tos USING btree (procedure_id); - - --- --- Name: index_cerfas_on_dossier_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_cerfas_on_dossier_id ON cerfas USING btree (dossier_id); - - --- --- Name: index_champs_on_dossier_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_champs_on_dossier_id ON champs USING btree (dossier_id); - - --- --- Name: index_champs_on_type_de_champ_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_champs_on_type_de_champ_id ON champs USING btree (type_de_champ_id); - - --- --- Name: index_commentaires_on_dossier_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_commentaires_on_dossier_id ON commentaires USING btree (dossier_id); - - --- --- Name: index_dossiers_on_procedure_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_dossiers_on_procedure_id ON dossiers USING btree (procedure_id); - - --- --- Name: index_dossiers_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_dossiers_on_user_id ON dossiers USING btree (user_id); - - --- --- Name: index_drop_down_lists_on_type_de_champ_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_drop_down_lists_on_type_de_champ_id ON drop_down_lists USING btree (type_de_champ_id); - - --- --- Name: index_entreprises_on_dossier_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_entreprises_on_dossier_id ON entreprises USING btree (dossier_id); - - --- --- Name: index_etablissements_on_dossier_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_etablissements_on_dossier_id ON etablissements USING btree (dossier_id); - - --- --- Name: index_follows_on_dossier_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_follows_on_dossier_id ON follows USING btree (dossier_id); - - --- --- Name: index_follows_on_gestionnaire_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_follows_on_gestionnaire_id ON follows USING btree (gestionnaire_id); - - --- --- Name: index_france_connect_informations_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_france_connect_informations_on_user_id ON france_connect_informations USING btree (user_id); - - --- --- Name: index_gestionnaires_on_email; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_gestionnaires_on_email ON gestionnaires USING btree (email); - - --- --- Name: index_gestionnaires_on_reset_password_token; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_gestionnaires_on_reset_password_token ON gestionnaires USING btree (reset_password_token); - - --- --- Name: index_individuals_on_dossier_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_individuals_on_dossier_id ON individuals USING btree (dossier_id); - - --- --- Name: index_module_api_cartos_on_procedure_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_module_api_cartos_on_procedure_id ON module_api_cartos USING btree (procedure_id); - - --- --- Name: index_pieces_justificatives_on_dossier_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_pieces_justificatives_on_dossier_id ON pieces_justificatives USING btree (dossier_id); - - --- --- Name: index_pieces_justificatives_on_type_de_piece_justificative_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_pieces_justificatives_on_type_de_piece_justificative_id ON pieces_justificatives USING btree (type_de_piece_justificative_id); - - --- --- Name: index_procedure_paths_on_path; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_procedure_paths_on_path ON procedure_paths USING btree (path); - - --- --- Name: index_rna_informations_on_entreprise_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_rna_informations_on_entreprise_id ON rna_informations USING btree (entreprise_id); - - --- --- Name: index_users_on_email; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_users_on_email ON users USING btree (email); - - --- --- Name: index_users_on_reset_password_token; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_users_on_reset_password_token ON users USING btree (reset_password_token); - - --- --- Name: unique_couple_administrateur_gestionnaire; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX unique_couple_administrateur_gestionnaire ON administrateurs_gestionnaires USING btree (gestionnaire_id, administrateur_id); - - --- --- Name: unique_schema_migrations; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX unique_schema_migrations ON schema_migrations USING btree (version); - - --- --- Name: fk_rails_2692c11f42; Type: FK CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY cerfas - ADD CONSTRAINT fk_rails_2692c11f42 FOREIGN KEY (dossier_id) REFERENCES dossiers(id); - - --- --- Name: fk_rails_3ba5f624df; Type: FK CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY procedure_paths - ADD CONSTRAINT fk_rails_3ba5f624df FOREIGN KEY (administrateur_id) REFERENCES administrateurs(id); - - --- --- Name: fk_rails_7238f4c1f2; Type: FK CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY procedure_paths - ADD CONSTRAINT fk_rails_7238f4c1f2 FOREIGN KEY (procedure_id) REFERENCES procedures(id); - - --- --- Name: fk_rails_7a18851d0c; Type: FK CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY dossiers - ADD CONSTRAINT fk_rails_7a18851d0c FOREIGN KEY (user_id) REFERENCES users(id); - - --- --- Name: fk_rails_e74708c22b; Type: FK CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY commentaires - ADD CONSTRAINT fk_rails_e74708c22b FOREIGN KEY (dossier_id) REFERENCES dossiers(id); - - --- --- PostgreSQL database dump complete --- - -SET search_path TO "$user", public; - -INSERT INTO schema_migrations (version) VALUES ('20150623121437'); - -INSERT INTO schema_migrations (version) VALUES ('20150623122513'); - -INSERT INTO schema_migrations (version) VALUES ('20150623123033'); - -INSERT INTO schema_migrations (version) VALUES ('20150624134202'); - -INSERT INTO schema_migrations (version) VALUES ('20150624145400'); - -INSERT INTO schema_migrations (version) VALUES ('20150625130851'); - -INSERT INTO schema_migrations (version) VALUES ('20150626081655'); - -INSERT INTO schema_migrations (version) VALUES ('20150630123827'); - -INSERT INTO schema_migrations (version) VALUES ('20150728140340'); - -INSERT INTO schema_migrations (version) VALUES ('20150731121101'); - -INSERT INTO schema_migrations (version) VALUES ('20150804131511'); - -INSERT INTO schema_migrations (version) VALUES ('20150805081131'); - -INSERT INTO schema_migrations (version) VALUES ('20150806071130'); - -INSERT INTO schema_migrations (version) VALUES ('20150806072031'); - -INSERT INTO schema_migrations (version) VALUES ('20150806075144'); - -INSERT INTO schema_migrations (version) VALUES ('20150806132417'); - -INSERT INTO schema_migrations (version) VALUES ('20150806155734'); - -INSERT INTO schema_migrations (version) VALUES ('20150806162353'); - -INSERT INTO schema_migrations (version) VALUES ('20150810130957'); - -INSERT INTO schema_migrations (version) VALUES ('20150812091703'); - -INSERT INTO schema_migrations (version) VALUES ('20150813095218'); - -INSERT INTO schema_migrations (version) VALUES ('20150813095939'); - -INSERT INTO schema_migrations (version) VALUES ('20150814090717'); - -INSERT INTO schema_migrations (version) VALUES ('20150814101012'); - -INSERT INTO schema_migrations (version) VALUES ('20150814120635'); - -INSERT INTO schema_migrations (version) VALUES ('20150814121848'); - -INSERT INTO schema_migrations (version) VALUES ('20150814122208'); - -INSERT INTO schema_migrations (version) VALUES ('20150814124735'); - -INSERT INTO schema_migrations (version) VALUES ('20150818113123'); - -INSERT INTO schema_migrations (version) VALUES ('20150824134012'); - -INSERT INTO schema_migrations (version) VALUES ('20150825083550'); - -INSERT INTO schema_migrations (version) VALUES ('20150918163159'); - -INSERT INTO schema_migrations (version) VALUES ('20150921085540'); - -INSERT INTO schema_migrations (version) VALUES ('20150921085754'); - -INSERT INTO schema_migrations (version) VALUES ('20150921092320'); - -INSERT INTO schema_migrations (version) VALUES ('20150921092536'); - -INSERT INTO schema_migrations (version) VALUES ('20150921101240'); - -INSERT INTO schema_migrations (version) VALUES ('20150922082053'); - -INSERT INTO schema_migrations (version) VALUES ('20150922082416'); - -INSERT INTO schema_migrations (version) VALUES ('20150922085811'); - -INSERT INTO schema_migrations (version) VALUES ('20150922110719'); - -INSERT INTO schema_migrations (version) VALUES ('20150922113504'); - -INSERT INTO schema_migrations (version) VALUES ('20150922141000'); - -INSERT INTO schema_migrations (version) VALUES ('20150922141232'); - -INSERT INTO schema_migrations (version) VALUES ('20150923101000'); - -INSERT INTO schema_migrations (version) VALUES ('20150928141512'); - -INSERT INTO schema_migrations (version) VALUES ('20151006155256'); - -INSERT INTO schema_migrations (version) VALUES ('20151007085022'); - -INSERT INTO schema_migrations (version) VALUES ('20151008090835'); - -INSERT INTO schema_migrations (version) VALUES ('20151023132121'); - -INSERT INTO schema_migrations (version) VALUES ('20151026155158'); - -INSERT INTO schema_migrations (version) VALUES ('20151027150850'); - -INSERT INTO schema_migrations (version) VALUES ('20151102101616'); - -INSERT INTO schema_migrations (version) VALUES ('20151102102747'); - -INSERT INTO schema_migrations (version) VALUES ('20151102104309'); - -INSERT INTO schema_migrations (version) VALUES ('20151102105011'); - -INSERT INTO schema_migrations (version) VALUES ('20151102135824'); - -INSERT INTO schema_migrations (version) VALUES ('20151102142940'); - -INSERT INTO schema_migrations (version) VALUES ('20151102143908'); - -INSERT INTO schema_migrations (version) VALUES ('20151102163051'); - -INSERT INTO schema_migrations (version) VALUES ('20151103091603'); - -INSERT INTO schema_migrations (version) VALUES ('20151105093644'); - -INSERT INTO schema_migrations (version) VALUES ('20151105095431'); - -INSERT INTO schema_migrations (version) VALUES ('20151110091159'); - -INSERT INTO schema_migrations (version) VALUES ('20151110091451'); - -INSERT INTO schema_migrations (version) VALUES ('20151112151918'); - -INSERT INTO schema_migrations (version) VALUES ('20151113171605'); - -INSERT INTO schema_migrations (version) VALUES ('20151116175817'); - -INSERT INTO schema_migrations (version) VALUES ('20151124085333'); - -INSERT INTO schema_migrations (version) VALUES ('20151126153425'); - -INSERT INTO schema_migrations (version) VALUES ('20151127103412'); - -INSERT INTO schema_migrations (version) VALUES ('20151207095904'); - -INSERT INTO schema_migrations (version) VALUES ('20151207140202'); - -INSERT INTO schema_migrations (version) VALUES ('20151210134135'); - -INSERT INTO schema_migrations (version) VALUES ('20151210150958'); - -INSERT INTO schema_migrations (version) VALUES ('20151211093833'); - -INSERT INTO schema_migrations (version) VALUES ('20151214133426'); - -INSERT INTO schema_migrations (version) VALUES ('20151221164041'); - -INSERT INTO schema_migrations (version) VALUES ('20151222105558'); - -INSERT INTO schema_migrations (version) VALUES ('20151223101322'); - -INSERT INTO schema_migrations (version) VALUES ('20160106100227'); - -INSERT INTO schema_migrations (version) VALUES ('20160115135025'); - -INSERT INTO schema_migrations (version) VALUES ('20160120094750'); - -INSERT INTO schema_migrations (version) VALUES ('20160120141602'); - -INSERT INTO schema_migrations (version) VALUES ('20160121110603'); - -INSERT INTO schema_migrations (version) VALUES ('20160127162841'); - -INSERT INTO schema_migrations (version) VALUES ('20160127170437'); - -INSERT INTO schema_migrations (version) VALUES ('20160204155519'); - -INSERT INTO schema_migrations (version) VALUES ('20160223134354'); - -INSERT INTO schema_migrations (version) VALUES ('20160314102523'); - -INSERT INTO schema_migrations (version) VALUES ('20160314160801'); - -INSERT INTO schema_migrations (version) VALUES ('20160314161959'); - -INSERT INTO schema_migrations (version) VALUES ('20160315101245'); - -INSERT INTO schema_migrations (version) VALUES ('20160317135217'); - -INSERT INTO schema_migrations (version) VALUES ('20160317144949'); - -INSERT INTO schema_migrations (version) VALUES ('20160317153115'); - -INSERT INTO schema_migrations (version) VALUES ('20160419142017'); - -INSERT INTO schema_migrations (version) VALUES ('20160512160602'); - -INSERT INTO schema_migrations (version) VALUES ('20160512160658'); - -INSERT INTO schema_migrations (version) VALUES ('20160512160824'); - -INSERT INTO schema_migrations (version) VALUES ('20160512160836'); - -INSERT INTO schema_migrations (version) VALUES ('20160513093425'); - -INSERT INTO schema_migrations (version) VALUES ('20160519100904'); - -INSERT INTO schema_migrations (version) VALUES ('20160519101018'); - -INSERT INTO schema_migrations (version) VALUES ('20160523163054'); - -INSERT INTO schema_migrations (version) VALUES ('20160524093540'); - -INSERT INTO schema_migrations (version) VALUES ('20160607150440'); - -INSERT INTO schema_migrations (version) VALUES ('20160609125949'); - -INSERT INTO schema_migrations (version) VALUES ('20160609145737'); - -INSERT INTO schema_migrations (version) VALUES ('20160622081321'); - -INSERT INTO schema_migrations (version) VALUES ('20160622081322'); - -INSERT INTO schema_migrations (version) VALUES ('20160718124741'); - -INSERT INTO schema_migrations (version) VALUES ('20160722135927'); - -INSERT INTO schema_migrations (version) VALUES ('20160802113112'); - -INSERT INTO schema_migrations (version) VALUES ('20160802131031'); - -INSERT INTO schema_migrations (version) VALUES ('20160802161734'); - -INSERT INTO schema_migrations (version) VALUES ('20160803081304'); - -INSERT INTO schema_migrations (version) VALUES ('20160804130638'); - -INSERT INTO schema_migrations (version) VALUES ('20160808115924'); - -INSERT INTO schema_migrations (version) VALUES ('20160809083606'); - -INSERT INTO schema_migrations (version) VALUES ('20160822142045'); - -INSERT INTO schema_migrations (version) VALUES ('20160824094151'); - -INSERT INTO schema_migrations (version) VALUES ('20160824094451'); - -INSERT INTO schema_migrations (version) VALUES ('20160829094658'); - -INSERT INTO schema_migrations (version) VALUES ('20160829114646'); - -INSERT INTO schema_migrations (version) VALUES ('20160830142653'); - -INSERT INTO schema_migrations (version) VALUES ('20160901082824'); - -INSERT INTO schema_migrations (version) VALUES ('20160906123255'); - -INSERT INTO schema_migrations (version) VALUES ('20160906134155'); - -INSERT INTO schema_migrations (version) VALUES ('20160913093948'); - -INSERT INTO schema_migrations (version) VALUES ('20160926160051'); - -INSERT INTO schema_migrations (version) VALUES ('20160927154248'); - -INSERT INTO schema_migrations (version) VALUES ('20161004175442'); - -INSERT INTO schema_migrations (version) VALUES ('20161005082113'); - -INSERT INTO schema_migrations (version) VALUES ('20161005144657'); - -INSERT INTO schema_migrations (version) VALUES ('20161006085422'); - -INSERT INTO schema_migrations (version) VALUES ('20161007095443'); - -INSERT INTO schema_migrations (version) VALUES ('20161011125345'); - -INSERT INTO schema_migrations (version) VALUES ('20161025150900'); - -INSERT INTO schema_migrations (version) VALUES ('20161102154835'); -