Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Comptoir du Libre v3 - Upcoming version
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Comptoir
Comptoir du Libre v3 - Upcoming version
Commits
672fa003
Commit
672fa003
authored
2 weeks ago
by
Fabrice Gangler
Browse files
Options
Downloads
Patches
Plain Diff
fix: add first records to [ organization_type ] table
parent
9ccd4f3d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
webapp/migrations/Version20250312100203.php
+31
-0
31 additions, 0 deletions
webapp/migrations/Version20250312100203.php
with
31 additions
and
0 deletions
webapp/migrations/Version20250312100203.php
0 → 100644
+
31
−
0
View file @
672fa003
<?php
declare
(
strict_types
=
1
);
namespace
DoctrineMigrations
;
use
Doctrine\DBAL\Schema\Schema
;
use
Doctrine\Migrations\AbstractMigration
;
final
class
Version20250312100203
extends
AbstractMigration
{
public
function
getDescription
():
string
{
return
'Add first records to [ organization_type ] table'
;
}
public
function
up
(
Schema
$schema
):
void
{
$this
->
addSql
(
'INSERT INTO "organization_type" (id, name) VALUES (1, \'public_sector\')'
);
$this
->
addSql
(
'INSERT INTO "organization_type" (id, name) VALUES (2, \'no_profit\')'
);
$this
->
addSql
(
'INSERT INTO "organization_type" (id, name) VALUES (3, \'company\')'
);
}
public
function
down
(
Schema
$schema
):
void
{
$this
->
addSql
(
'DELETE FROM "organization_type" WHERE id = 1'
);
$this
->
addSql
(
'DELETE FROM "organization_type" WHERE id = 2'
);
$this
->
addSql
(
'DELETE FROM "organization_type" WHERE id = 3'
);
$this
->
addSql
(
'CREATE SCHEMA public'
);
}
}
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