Commit a159b938 authored by BERJON Matthieu's avatar BERJON Matthieu

Add of a django table

For some specifics tasks Django needs a table called django_site. It's
necessary for the authentification third party system that we use
allauth.
Signed-off-by: BERJON Matthieu's avatarMatthieu Berjon <matthieu.berjon@inria.fr>
parent dbd4a5cb
......@@ -8,7 +8,7 @@ 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 \
auth_group_permissions auth_permission auth_user auth_user_groups \
auth_user_user_permissions django_admin_log django_content_type \
django_migrations django_session"
django_migrations django_session django_site"
CUR_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
......
......@@ -125,6 +125,30 @@ ALTER TABLE `django_session`
ADD PRIMARY KEY (`session_key`),
ADD KEY `django_session_expire_date_a5c62663` (`expire_date`);
--
-- Table structure for table `django_site`
--
CREATE TABLE `django_site` (
`id` int(11) NOT NULL,
`domain` varchar(100) NOT NULL,
`name` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `django_site`
--
INSERT INTO `django_site` (`id`, `domain`, `name`) VALUES
(1, 'allgo.inria.fr', 'allgo.inria.fr');
ALTER TABLE `django_site`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `django_site_domain_a2e37b91_uniq` (`domain`);
ALTER TABLE `django_site`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- Table structure for table `auth_group`
--
......
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