Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
framadate
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nounous
framadate
Commits
dc7e317e
Commit
dc7e317e
authored
12 years ago
by
pyg77
Browse files
Options
Downloads
Patches
Plain Diff
mise à jour du script MySQL
parent
05c8ba7c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
admin/.htaccess
+3
-3
3 additions, 3 deletions
admin/.htaccess
install.mysql.sql
+47
-36
47 additions, 36 deletions
install.mysql.sql
with
50 additions
and
39 deletions
admin/.htaccess
+
3
−
3
View file @
dc7e317e
authType
basic
authName
"ADMIN OpenSondage"
authUserFile
/home/framatools/www/opensondage/admin/.htpasswd
authUserFile
/home/framatools/www/opensondage
_dev
/admin/.htpasswd
order
deny,allow
#
order deny,allow
# satisfy all
# allow from all
require
user
studs
#
require user studs
This diff is collapsed.
Click to expand it.
install.mysql.sql
+
47
−
36
View file @
dc7e317e
CREATE
TABLE
IF
NOT
EXISTS
`sondage`
(
`id_sondage`
CHAR
(
16
)
NOT
NULL
,
`commentaires`
text
,
`mail_admin`
VARCHAR
(
128
),
`nom_admin`
VARCHAR
(
64
),
`titre`
text
,
`id_sondage_admin`
CHAR
(
24
),
`date_fin`
TIMESTAMP
,
`format`
VARCHAR
(
2
),
`mailsonde`
BOOLEAN
DEFAULT
'0'
,
UNIQUE
KEY
(
`id_sondage`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
;
-- Base de données: `opensondage`
--
-- --------------------------------------------------------
--
--
Name: sujet_studs; Type: TABLE;
--
Structure de la table `comments`
--
CREATE
TABLE
IF
NOT
EXISTS
`sujet_studs`
(
`id_sondage`
CHAR
(
16
)
NOT
NULL
,
`sujet`
TEXT
,
FOREIGN
KEY
(
`id_sondage`
)
REFERENCES
sondage
(
id_sondage
)
on
delete
cascade
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
;
CREATE
TABLE
IF
NOT
EXISTS
`comments`
(
`id_comment`
int
(
11
)
unsigned
NOT
NULL
AUTO_INCREMENT
,
`id_sondage`
char
(
16
)
NOT
NULL
,
`comment`
text
NOT
NULL
,
`usercomment`
text
,
PRIMARY
KEY
(
`id_comment`
),
KEY
`id_sondage`
(
`id_sondage`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
;
-- --------------------------------------------------------
--
--
Name: user_studs; Type: TABLE;
--
Structure de la table `sondage`
--
CREATE
TABLE
IF
NOT
EXISTS
`user_studs`
(
`id_users`
INT
(
11
)
unsigned
NOT
NULL
AUTO_INCREMENT
,
`nom`
VARCHAR
(
64
)
NOT
NULL
,
`id_sondage`
CHAR
(
16
)
NOT
NULL
,
`reponses`
text
NOT
NULL
,
PRIMARY
KEY
(
`id_users`
),
FOREIGN
KEY
(
`id_sondage`
)
REFERENCES
sondage
(
id_sondage
)
on
delete
cascade
CREATE
TABLE
IF
NOT
EXISTS
`sondage`
(
`id_sondage`
char
(
16
)
NOT
NULL
,
`commentaires`
text
,
`mail_admin`
varchar
(
128
)
DEFAULT
NULL
,
`nom_admin`
varchar
(
64
)
DEFAULT
NULL
,
`titre`
text
,
`id_sondage_admin`
char
(
24
)
DEFAULT
NULL
,
`date_creation`
timestamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
,
`date_fin`
timestamp
NOT
NULL
DEFAULT
'0000-00-00 00:00:00'
,
`format`
varchar
(
2
)
DEFAULT
NULL
,
`mailsonde`
tinyint
(
1
)
DEFAULT
'0'
,
`statut`
int
(
11
)
NOT
NULL
DEFAULT
'1'
COMMENT
'1 = actif ; 0 = inactif ; '
,
UNIQUE
KEY
`id_sondage`
(
`id_sondage`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
;
-- --------------------------------------------------------
--
--
Name: comments; Type: TABLE;
--
Structure de la table `sujet_studs`
--
CREATE
TABLE
IF
NOT
EXISTS
`comments`
(
`id_comment`
INT
(
11
)
unsigned
NOT
NULL
AUTO_INCREMENT
,
`id_sondage`
CHAR
(
16
)
NOT
NULL
,
`comment`
text
NOT
NULL
,
`usercomment`
text
,
PRIMARY
KEY
(
`id_comment`
),
FOREIGN
KEY
(
`id_sondage`
)
REFERENCES
sondage
(
id_sondage
)
on
delete
cascade
CREATE
TABLE
IF
NOT
EXISTS
`sujet_studs`
(
`id_sondage`
char
(
16
)
NOT
NULL
,
`sujet`
text
,
KEY
`id_sondage`
(
`id_sondage`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
;
-- --------------------------------------------------------
--
--
Data for Name: sondage; Type: TABLE DATA;
--
Structure de la table `user_studs`
--
CREATE
TABLE
IF
NOT
EXISTS
`user_studs`
(
`id_users`
int
(
11
)
unsigned
NOT
NULL
AUTO_INCREMENT
,
`nom`
varchar
(
64
)
NOT
NULL
,
`id_sondage`
char
(
16
)
NOT
NULL
,
`reponses`
text
NOT
NULL
,
PRIMARY
KEY
(
`id_users`
),
KEY
`id_sondage`
(
`id_sondage`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
AUTO_INCREMENT
=
160284
;
INSERT
INTO
`sondage`
(
`id_sondage`
,
`commentaires`
,
`mail_admin`
,
`nom_admin`
,
`titre`
,
`id_sondage_admin`
,
`date_fin`
,
`format`
)
VALUES
(
'aqg259dth55iuhwm'
,
'Repas de Noel du service'
,
'Stephanie@
s
aillard.com'
,
'Stephanie'
,
(
'aqg259dth55iuhwm'
,
'Repas de Noel du service'
,
'Stephanie@
ret
aillard.com'
,
'Stephanie'
,
'Repas de Noel'
,
'aqg259dth55iuhwmy9d8jlwk'
,
FROM_UNIXTIME
(
'1627100361'
),
'D+'
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment