Toggle navigation
Toggle navigation
This project
Loading...
Sign in
grogv3
/
grog-cubi
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Jean-Francois Leveque
2016-11-21 16:18:27 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
23db94a8f4ea079f847ceb9e6a34f5e72bf5a9ff
23db94a8
1 parent
e1f82eff
Passage de la population des données au mode GenerationType.IDENTITY
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
41 deletions
src/main/resources/import.sql
src/main/resources/import.sql
View file @
23db94a
INSERT
INTO
UserAction
(
userActionName
)
VALUES
(
'Validate'
);
INSERT
INTO
Country
(
countryName
)
VALUES
(
'France'
);
INSERT
INTO
Country
(
countryName
)
VALUES
(
'Suisse'
);
INSERT
INTO
Country
(
countryName
)
VALUES
(
'Belgique'
);
INSERT
INTO
Country
(
countryName
)
VALUES
(
'Canada'
);
INSERT
INTO
Country
(
countryName
)
VALUES
(
'États-Unis d
''
Amérique'
);
INSERT
INTO
Country
(
countryName
)
VALUES
(
'Australie'
);
INSERT
INTO
Country
(
countryName
)
VALUES
(
'Espagne'
);
INSERT
INTO
Country
(
countryName
)
VALUES
(
'Portugal'
);
INSERT
INTO
Country
(
countryName
)
VALUES
(
'Royaume-Uni'
);
INSERT
INTO
Country
(
countryName
)
VALUES
(
'Allemagne'
);
INSERT
INTO
Country
(
countryName
)
VALUES
(
'Pologne'
);
INSERT
INTO
Country
(
countryName
)
VALUES
(
'Italie'
);
INSERT
INTO
UserTable
(
USER_ID
,
username
,
password
,
firstName
,
lastName
,
nickname
,
email
,
activated
,
anonymous
,
visible
,
criticProvider
)
VALUES
-- INSERT avec identifiants car GenerationType.AUTO a du être changé en GenerationType.IDENTITY (2016-11-21)
INSERT
INTO
UserAction
(
userActionId
,
userActionName
)
VALUES
(
1
,
'Validate'
);
INSERT
INTO
Country
(
countryId
,
countryName
)
VALUES
(
1
,
'France'
),
(
2
,
'Suisse'
),
(
3
,
'Belgique'
),
(
4
,
'Canada'
),
(
5
,
'États-Unis d
''
Amérique'
),
(
6
,
'Australie'
),
(
7
,
'Espagne'
),
(
8
,
'Portugal'
),
(
9
,
'Royaume-Uni'
),
(
10
,
'Allemagne'
),
(
11
,
'Pologne'
),
(
12
,
'Italie'
);
INSERT
INTO
UserTable
(
userId
,
username
,
password
,
firstName
,
lastName
,
nickname
,
email
,
activated
,
anonymous
,
visible
,
criticProvider
)
VALUES
(
1
,
'one'
,
'one'
,
'Derrick'
,
'Moss'
,
'one'
,
'one@raza.org'
,
TRUE
,
FALSE
,
TRUE
,
TRUE
),
(
2
,
'two'
,
'two'
,
'Portia'
,
'Lin'
,
'two'
,
'two@raza.org'
,
TRUE
,
FALSE
,
TRUE
,
TRUE
),
(
3
,
'three'
,
'three'
,
'Marcus'
,
'Boone'
,
'three'
,
'three@raza.org'
,
TRUE
,
FALSE
,
TRUE
,
TRUE
),
...
...
@@ -19,35 +22,41 @@ INSERT INTO UserTable (USER_ID, username, password, firstName, lastName, nicknam
(
5
,
'five'
,
'five'
,
'Emily'
,
'Kolburn'
,
'five'
,
'five@raza.org'
,
TRUE
,
FALSE
,
TRUE
,
TRUE
),
(
6
,
'six'
,
'six'
,
'Kal'
,
'Varrik'
,
'six'
,
'six@raza.org'
,
TRUE
,
FALSE
,
TRUE
,
TRUE
);
INSERT
INTO
Publisher
VALUES
();
INSERT
INTO
Publisher
VALUES
();
INSERT
INTO
Publisher
VALUES
();
INSERT
INTO
Publisher
VALUES
();
INSERT
INTO
Publisher
(
publisherId
)
VALUES
(
1
),
(
2
),
(
3
),
(
4
);
INSERT
INTO
PublisherVersion
(
publisher_PUBLISHER_ID
,
publisherName
,
publisherStreetAddress
,
publisherPostalCode
,
publisherPostOfficeBoxNumber
,
publisherAddressRegion
,
publisherAddressLocality
,
publisherAddressCountry_COUNTRY_ID
,
publisherTelephone
,
publisherEmail
,
publisherURL
,
publisherActive
,
publisherHistory
,
publisherVersionAuthor_USER_ID
,
publisherVersionDatetime
)
VALUES
(
1
,
'GRôG'
,
''
,
''
,
''
,
''
,
''
,
1
,
''
,
'passerelle@legrog.org'
,
'www.legrog.org'
,
TRUE
,
'Ouvert…'
,
1
,
{
ts
'2000-05-08 00:00:47'
}
),
(
2
,
'Rôliste TV'
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
1
,
NULL
,
NULL
,
'www.rolistetv.com'
,
TRUE
,
'Ouvert…'
,
3
,
{
ts
'2010-05-20 08:43:16'
}
),
(
3
,
'La Vouivre'
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
1
,
NULL
,
NULL
,
'la-vouivre.com'
,
TRUE
,
'Ouvert…'
,
1
,
{
ts
'2000-01-01 00:02:33'
}
),
(
3
,
'La Vouivre'
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
1
,
NULL
,
NULL
,
'la-vouivre.com'
,
FALSE
,
'… en 2015'
,
2
,
{
ts
'2015-01-01 00:05:22'
}
),
(
4
,
'Archmagus'
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
1
,
NULL
,
NULL
,
'archimage.net'
,
TRUE
,
'Ouvert…'
,
4
,
{
ts
'2016-10-14 10:56:03'
}
);
UPDATE
Publisher
SET
validatedVersion_PUBLISHER_VERSION_ID
=
1
,
validator_USER_ID
=
2
,
validationDateTime
=
{
ts
'2000-05-08 12:00:28'
}
WHERE
PUBLISHER_ID
=
1
;
UPDATE
Publisher
SET
validatedVersion_PUBLISHER_VERSION_ID
=
2
,
validator_USER_ID
=
1
,
validationDateTime
=
{
ts
'2010-06-20 14:27:35'
}
WHERE
PUBLISHER_ID
=
2
;
UPDATE
Publisher
SET
validatedVersion_PUBLISHER_VERSION_ID
=
4
,
validator_USER_ID
=
1
,
validationDateTime
=
{
ts
'2015-01-01 16:18:17'
}
WHERE
PUBLISHER_ID
=
3
;
INSERT
INTO
PublisherVersion
(
publisherVersionId
,
publisher_publisherId
,
publisherName
,
publisherStreetAddress
,
publisherPostalCode
,
publisherPostOfficeBoxNumber
,
publisherAddressRegion
,
publisherAddressLocality
,
publisherAddressCountry_countryId
,
publisherTelephone
,
publisherEmail
,
publisherURL
,
publisherActive
,
publisherHistory
,
publisherVersionAuthor_userId
,
publisherVersionDatetime
)
VALUES
(
1
,
1
,
'GRôG'
,
''
,
''
,
''
,
''
,
''
,
1
,
''
,
'passerelle@legrog.org'
,
'www.legrog.org'
,
TRUE
,
'Ouvert…'
,
1
,
{
ts
'2000-05-08 00:00:47'
}
),
(
2
,
2
,
'Rôliste TV'
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
1
,
NULL
,
NULL
,
'www.rolistetv.com'
,
TRUE
,
'Ouvert…'
,
3
,
{
ts
'2010-05-20 08:43:16'
}
),
(
3
,
3
,
'La Vouivre'
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
1
,
NULL
,
NULL
,
'la-vouivre.com'
,
TRUE
,
'Ouvert…'
,
1
,
{
ts
'2000-01-01 00:02:33'
}
),
(
4
,
3
,
'La Vouivre'
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
1
,
NULL
,
NULL
,
'la-vouivre.com'
,
FALSE
,
'… en 2015'
,
2
,
{
ts
'2015-01-01 00:05:22'
}
),
(
5
,
4
,
'Archmagus'
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
1
,
NULL
,
NULL
,
'archimage.net'
,
TRUE
,
'Ouvert…'
,
4
,
{
ts
'2016-10-14 10:56:03'
}
);
UPDATE
Publisher
SET
validatedVersion_publisherVersionId
=
1
WHERE
publisherId
=
1
;
UPDATE
Publisher
SET
validatedVersion_publisherVersionId
=
2
WHERE
publisherId
=
2
;
UPDATE
Publisher
SET
validatedVersion_publisherVersionId
=
4
WHERE
publisherId
=
3
;
INSERT
INTO
UserRole
(
rolename
,
visible
)
VALUES
(
'VISITEUR'
,
TRUE
);
INSERT
INTO
UserRole
(
rolename
,
visible
)
VALUES
(
'RECRUE'
,
TRUE
);
INSERT
INTO
UserRole
(
rolename
,
visible
)
VALUES
(
'CONTRIBUTEUR'
,
TRUE
);
INSERT
INTO
UserRole
(
rolename
,
visible
)
VALUES
(
'ADMINISTRATEUR'
,
TRUE
);
INSERT
INTO
UserRole
(
rolename
,
visible
)
VALUES
(
'RETRAITE'
,
TRUE
);
INSERT
INTO
UserRole
(
rolename
,
visible
)
VALUES
(
'ASSOCE'
,
TRUE
);
INSERT
INTO
UserProperty
(
name
,
tag
,
visible
)
VALUES
(
'nb_vignettes'
,
'Nombre de vignettes en home'
,
TRUE
);
INSERT
INTO
UserProperty
(
name
,
tag
,
visible
)
VALUES
(
'avatar'
,
'Lien vers une icône ou une photo'
,
TRUE
);
INSERT
INTO
UserProperty
(
name
,
tag
,
visible
)
VALUES
(
'tagline'
,
'Ligne de présentation pour les contributeurs'
,
TRUE
);
INSERT
INTO
UserProperty
(
name
,
tag
,
visible
)
VALUES
(
'taille_listes'
,
'Nombre d
''
éléments affichés dans les listes'
,
TRUE
);
INSERT
INTO
UserProperty
(
name
,
tag
,
visible
)
VALUES
(
'skin'
,
'Thème visuel'
,
TRUE
);
INSERT
INTO
PublisherAction
(
publisherActionId
,
userAction_userActionId
,
publisherActionAuthor_userId
,
publisherVersion_publisherVersionId
,
publisherActionDatetime
,
publisher_publisherId
)
VALUES
(
1
,
1
,
2
,
1
,
{
ts
'2000-05-08 12:00:28'
}
,
1
),
(
2
,
1
,
1
,
2
,
{
ts
'2010-06-20 14:27:35'
}
,
2
),
(
3
,
1
,
1
,
4
,
{
ts
'2015-01-01 16:18:17'
}
,
3
);
INSERT
INTO
UserRole
(
userRoleId
,
rolename
,
visible
)
VALUES
(
1
,
'VISITEUR'
,
TRUE
),
(
2
,
'RECRUE'
,
TRUE
),
(
3
,
'CONTRIBUTEUR'
,
TRUE
),
(
4
,
'ADMINISTRATEUR'
,
TRUE
),
(
5
,
'RETRAITE'
,
TRUE
),
(
6
,
'ASSOCE'
,
TRUE
);
INSERT
INTO
UserProperty
(
userPropertyId
,
name
,
tag
,
visible
)
VALUES
(
1
,
'nb_vignettes'
,
'Nombre de vignettes en home'
,
TRUE
),
(
2
,
'avatar'
,
'Lien vers une icône ou une photo'
,
TRUE
),
(
3
,
'tagline'
,
'Ligne de présentation pour les contributeurs'
,
TRUE
),
(
4
,
'taille_listes'
,
'Nombre d
''
éléments affichés dans les listes'
,
TRUE
),
(
5
,
'skin'
,
'Thème visuel'
,
TRUE
);
INSERT
INTO
UserTable_UserRole
VALUES
(
1
,
2
);
INSERT
INTO
UserTable_UserRole
VALUES
(
2
,
2
);
...
...
Please
register
or
login
to post a comment