Commit b8de776d authored by BERJON Matthieu's avatar BERJON Matthieu

Update for allauth SQL migration

I added the allauth migration for authentification and registration to
the SQL table.
Signed-off-by: BERJON Matthieu's avatarMatthieu Berjon <matthieu.berjon@inria.fr>
parent eb549255
...@@ -8,7 +8,11 @@ DJANGO_TABLES="dj_docker_os dj_webapps dj_webapp_parameters dj_webapp_versions \ ...@@ -8,7 +8,11 @@ DJANGO_TABLES="dj_docker_os dj_webapps dj_webapp_parameters dj_webapp_versions \
dj_users dj_quotas dj_job_queues dj_jobs dj_job_uploads auth_group \ dj_users dj_quotas dj_job_queues dj_jobs dj_job_uploads auth_group \
auth_group_permissions auth_permission auth_user auth_user_groups \ auth_group_permissions auth_permission auth_user auth_user_groups \
auth_user_user_permissions django_admin_log django_content_type \ auth_user_user_permissions django_admin_log django_content_type \
django_migrations django_session django_site" django_migrations django_session django_site django_admin_log \
account_emailaddress account_emailconfirmation \
socialaccount_socialaccount socialaccount_socialapp \
socialaccount_socialapp_sites socialaccount_socialtoken"
CUR_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" CUR_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
......
...@@ -252,7 +252,6 @@ ALTER TABLE `auth_user_user_permissions` ...@@ -252,7 +252,6 @@ ALTER TABLE `auth_user_user_permissions`
ADD CONSTRAINT `auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm` FOREIGN KEY (`permission_id`) REFERENCES `auth_permission` (`id`), ADD CONSTRAINT `auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm` FOREIGN KEY (`permission_id`) REFERENCES `auth_permission` (`id`),
ADD CONSTRAINT `auth_user_user_permissions_user_id_a95ead1b_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`); ADD CONSTRAINT `auth_user_user_permissions_user_id_a95ead1b_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`);
-- --
-- Update of users table -- Update of users table
-- --
...@@ -306,4 +305,141 @@ Alter TABLE `dj_job_uploads` ...@@ -306,4 +305,141 @@ Alter TABLE `dj_job_uploads`
DROP COLUMN `type`; DROP COLUMN `type`;
--
-- Table structure for table `socialaccount_socialapp`
--
CREATE TABLE `socialaccount_socialapp` (
`id` int(11) NOT NULL,
`provider` varchar(30) NOT NULL,
`name` varchar(40) NOT NULL,
`client_id` varchar(191) NOT NULL,
`secret` varchar(191) NOT NULL,
`key` varchar(191) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
ALTER TABLE `socialaccount_socialapp`
ADD PRIMARY KEY (`id`);
ALTER TABLE `socialaccount_socialapp`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- Table structure for table `socialaccount_socialaccount`
--
CREATE TABLE `socialaccount_socialaccount` (
`id` int(11) NOT NULL,
`provider` varchar(30) NOT NULL,
`uid` varchar(191) NOT NULL,
`last_login` datetime(6) NOT NULL,
`date_joined` datetime(6) NOT NULL,
`extra_data` longtext NOT NULL,
`user_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
ALTER TABLE `socialaccount_socialaccount`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `socialaccount_socialaccount_provider_uid_fc810c6e_uniq` (`provider`,`uid`),
ADD KEY `socialaccount_socialaccount_user_id_8146e70c_fk_auth_user_id` (`user_id`);
ALTER TABLE `socialaccount_socialaccount`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
ALTER TABLE `socialaccount_socialaccount`
ADD CONSTRAINT `socialaccount_socialaccount_user_id_8146e70c_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`);
--
-- Table structure for table `socialaccount_socialapp_sites`
--
CREATE TABLE `socialaccount_socialapp_sites` (
`id` int(11) NOT NULL,
`socialapp_id` int(11) NOT NULL,
`site_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
ALTER TABLE `socialaccount_socialapp_sites`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `socialaccount_socialapp_sites_socialapp_id_site_id_71a9a768_uniq` (`socialapp_id`,`site_id`),
ADD KEY `socialaccount_socialapp_sites_site_id_2579dee5_fk_django_site_id` (`site_id`);
ALTER TABLE `socialaccount_socialapp_sites`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
ALTER TABLE `socialaccount_socialapp_sites`
ADD CONSTRAINT `socialaccount_social_socialapp_id_97fb6e7d_fk_socialacc` FOREIGN KEY (`socialapp_id`) REFERENCES `socialaccount_socialapp` (`id`),
ADD CONSTRAINT `socialaccount_socialapp_sites_site_id_2579dee5_fk_django_site_id` FOREIGN KEY (`site_id`) REFERENCES `django_site` (`id`);
--
-- Table structure for table `socialaccount_socialtoken`
--
CREATE TABLE `socialaccount_socialtoken` (
`id` int(11) NOT NULL,
`token` longtext NOT NULL,
`token_secret` longtext NOT NULL,
`expires_at` datetime(6) DEFAULT NULL,
`account_id` int(11) NOT NULL,
`app_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
ALTER TABLE `socialaccount_socialtoken`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `socialaccount_socialtoken_app_id_account_id_fca4e0ac_uniq` (`app_id`,`account_id`),
ADD KEY `socialaccount_social_account_id_951f210e_fk_socialacc` (`account_id`);
ALTER TABLE `socialaccount_socialtoken`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
ALTER TABLE `socialaccount_socialtoken`
ADD CONSTRAINT `socialaccount_social_account_id_951f210e_fk_socialacc` FOREIGN KEY (`account_id`) REFERENCES `socialaccount_socialaccount` (`id`),
ADD CONSTRAINT `socialaccount_social_app_id_636a42d7_fk_socialacc` FOREIGN KEY (`app_id`) REFERENCES `socialaccount_socialapp` (`id`);
--
-- Table structure for table `account_emailaddress`
--
CREATE TABLE `account_emailaddress` (
`id` int(11) NOT NULL,
`email` varchar(254) NOT NULL,
`verified` tinyint(1) NOT NULL,
`primary` tinyint(1) NOT NULL,
`user_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
ALTER TABLE `account_emailaddress`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `email` (`email`),
ADD KEY `account_emailaddress_user_id_2c513194_fk_auth_user_id` (`user_id`);
ALTER TABLE `account_emailaddress`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
ALTER TABLE `account_emailaddress`
ADD CONSTRAINT `account_emailaddress_user_id_2c513194_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`);
--
-- Table structure for table `account_emailconfirmation`
--
CREATE TABLE `account_emailconfirmation` (
`id` int(11) NOT NULL,
`created` datetime(6) NOT NULL,
`sent` datetime(6) DEFAULT NULL,
`key` varchar(64) NOT NULL,
`email_address_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
ALTER TABLE `account_emailconfirmation`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `key` (`key`),
ADD KEY `account_emailconfirm_email_address_id_5b7f8c58_fk_account_e` (`email_address_id`);
ALTER TABLE `account_emailconfirmation`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
ALTER TABLE `account_emailconfirmation`
ADD CONSTRAINT `account_emailconfirm_email_address_id_5b7f8c58_fk_account_e` FOREIGN KEY (`email_address_id`) REFERENCES `account_emailaddress` (`id`);
COMMIT; COMMIT;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment