Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/galatic press #172

Open
wants to merge 130 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
130 commits
Select commit Hold shift + click to select a range
88766c2
Fix notifications cleaning
Kern046 Aug 19, 2017
d8aca51
Fix hourly resources update when the base has the bonus resources qua…
Kern046 Aug 19, 2017
347f4ce
Fix player bonus loading
Kern046 Aug 20, 2017
818e12b
Fix trade platform transactions accepting
Kern046 Aug 22, 2017
4209618
Refactor search method in commercial route manager and repository
Kern046 Aug 20, 2017
5cbda24
Create new ajax route for trade route search
Kern046 Aug 20, 2017
173ff26
Remove old search in spatioport template
Kern046 Aug 20, 2017
947cf3e
Implement Ajax call on route search submit and render results
Kern046 Aug 20, 2017
3db6c33
Update gulp dependencies
Kern046 Aug 21, 2017
0e6d928
Implement a spinner component for loading
Kern046 Aug 21, 2017
70854e7
Stabilize the search results animation and implement a lock on the bu…
Kern046 Aug 21, 2017
2de5163
Properly refactor the trade components style in dedicated less file
Kern046 Aug 21, 2017
a19c698
Add price and income data to the routes search JSON
Kern046 Aug 21, 2017
f376c32
Implement the proposal module in the results list
Kern046 Aug 21, 2017
70642aa
Implement JSON serialization of a commercial route
Kern046 Aug 21, 2017
e4ec309
Implement ajax action for route proposal
Kern046 Aug 21, 2017
4c638fa
Implement selectors in spatioport number boxes
Kern046 Aug 21, 2017
c9c1138
Return JSON responses when an error occurs after an ajax call
Kern046 Aug 21, 2017
a8f99f1
Implement the ajax call for route proposal
Kern046 Aug 21, 2017
5f944e0
Implement private message option when proposing a route
Kern046 Aug 22, 2017
39c4469
Implement style for the textarea field on route proposal module
Kern046 Aug 22, 2017
0b3fd7c
Implement message option in proposal ajax call
Kern046 Aug 22, 2017
5e3ce7a
Add cookie parameters for the route search form
Kern046 Aug 22, 2017
7995e64
Fix the multi-cookie writing in HTTP responses according to RFC6265
Kern046 Aug 22, 2017
9db5bef
Store the route search form parameters in cookies
Kern046 Aug 22, 2017
f930b0e
Use the stored cookie parameters or default to display the route sear…
Kern046 Aug 22, 2017
1722770
Fix the route search with no faction selected
Kern046 Aug 22, 2017
23eedca
Release the lock on search form once an error has happened
Kern046 Aug 22, 2017
61404b6
Fill the factions checkboxes by default in routes search form
Kern046 Aug 22, 2017
591de5c
Add a security margin in the proposal panel CSS
Kern046 Aug 22, 2017
79499fa
Fix displayed data editing on proposal success
Kern046 Aug 22, 2017
f4fafd0
Set the sector number with map link in the search results, and standa…
Kern046 Aug 22, 2017
d26c0ed
Remove previous style
Kern046 Sep 29, 2017
76b90ce
Fix module display method
Kern046 Sep 29, 2017
0a10227
Fix recycling mission scheduling at engine boot
Kern046 Aug 22, 2017
2884c91
Require Stripe PHP SDK as a project dependency
Kern046 Sep 26, 2017
cbf0bb1
Implement model and repository for donations
Kern046 Sep 28, 2017
82cf58a
Implement donation manager with donation creation and retrieval method
Kern046 Sep 28, 2017
2b46e3c
Implement page and style for donations
Kern046 Sep 28, 2017
23827bf
Implement ajax action for donation confirmation
Kern046 Sep 28, 2017
063f87b
Use player bind key instead of ID to link donations and players accro…
Kern046 Sep 29, 2017
94849cd
Implement SQL statements to create donations table
Kern046 Sep 29, 2017
7e1ba70
Implement basic list of last donations
Kern046 Sep 29, 2017
7207c9f
Implement model classes for press news
Kern046 Aug 31, 2017
f439d93
Implement SQL scripts for press tables creation
Kern046 Aug 31, 2017
8b4fc56
Add discriminator field type for press news
Kern046 Aug 31, 2017
718dba1
Implement missing fields in migration scripts
Kern046 Sep 2, 2017
02715c4
Implement menu icon for the press area
Kern046 Sep 2, 2017
faefc0d
Implement repository retrieval method in unit of work
Kern046 Sep 2, 2017
1dfc43e
Implement datetime arguments for Chronos transform method
Kern046 Sep 2, 2017
1801eef
Implement dispatched event when a transaction is proposed
Kern046 Sep 2, 2017
2cb593a
Implement page for press area
Kern046 Sep 2, 2017
228f5b1
Implement manager, repositories and event subscriber for press news
Kern046 Sep 2, 2017
25affa7
Add missing fields at transaction creation
Kern046 Sep 2, 2017
9607227
Initialize style for news list
Kern046 Sep 2, 2017
1e08429
Implement battle events and military news creation
Kern046 Sep 2, 2017
9d53075
Implement Wrench as project dependency
Kern046 Sep 4, 2017
54da8fa
Implement connection handling classes for WS support
Kern046 Sep 4, 2017
8da1184
Implement support of websocket streaming for client connections
Kern046 Sep 4, 2017
af1258a
Implement military news display
Kern046 Sep 4, 2017
9c426f6
Handle dead connections
Kern046 Sep 5, 2017
ca2bf86
Broadcast JSON-formatted news at their creation
Kern046 Sep 5, 2017
30d8dea
Implement inherited method to get a news picto
Kern046 Sep 5, 2017
d855e28
Add commander avatar in transaction at proposal
Kern046 Sep 5, 2017
c538d11
Implement dynamic news alert with websockets
Kern046 Sep 5, 2017
539893c
Fix the controller usage for panel deployment
Kern046 Sep 5, 2017
eb26a47
Fix server host across environments
Kern046 Sep 5, 2017
1c94cc7
Fix scheduling for commercial shippings in case of waiting ones
Kern046 Sep 5, 2017
132fe10
Enable broadcast from a task
Kern046 Sep 11, 2017
ba1bc97
Run PHP-CS-Fixer
Kern046 Sep 11, 2017
83974ac
Implement politic news with elections and putsches
Kern046 Sep 12, 2017
ceb0c30
Implement politic news column in press area
Kern046 Sep 13, 2017
4ce0fcc
Fix politic news type for election
Kern046 Sep 13, 2017
4925afc
Fix WS pong method when disconnected
Kern046 Sep 13, 2017
446ec11
Add sub elements for press pages
Kern046 Sep 14, 2017
1582aa9
Implement new field weight for news
Kern046 Sep 19, 2017
3715a0f
Implement weight definition in news subscriber
Kern046 Sep 19, 2017
897b300
Add commander informations at transaction proposal
Kern046 Sep 19, 2017
fe5f384
Fix faction view when no ranking is available
Kern046 Oct 1, 2017
21ea505
Implement table inheritance for donation and charges and store the fe…
Kern046 Oct 5, 2017
0f34881
Implement top news and news banner for the newspaper
Kern046 Oct 5, 2017
c9cea41
Implement table build in database creation scripts
Kern046 Oct 5, 2017
f5a071a
Implement views for donations and budget statistics
Kern046 Oct 5, 2017
a5f933c
Implement elements for the newspaper
Kern046 Oct 5, 2017
e6ed72f
Implement HTTPS support and network securities
Kern046 Oct 5, 2017
053cbcf
Fix ships names and pevs in client app
Kern046 Oct 5, 2017
c0a8633
Implement scheme determination from request scheme
Kern046 Oct 14, 2017
9ce50cc
Update url schemes
Kern046 Oct 14, 2017
2df24e1
Fix election results news
Kern046 Oct 15, 2017
0dde705
Prevent mysql connection timeout
Kern046 Oct 15, 2017
cfeb232
Fix trade routes search results display
Kern046 Oct 15, 2017
15a1657
Implement jquery 3.2.1 and update the javascript code to ES6
Kern046 Oct 20, 2017
160f06a
Implement Guzzle as a project dependency
Kern046 Oct 20, 2017
086c557
Implement draft of project manager
Kern046 Oct 23, 2017
9c6a10f
Implement the new map for the next server
Kern046 Oct 24, 2017
75c1869
Implement draft of the newspaper view
Kern046 Oct 24, 2017
d51849d
Implement galaxy images for the new server minimap
Kern046 Oct 25, 2017
c0be7e8
Fix map rendering
Kern046 Oct 25, 2017
0af75eb
Fix action box
Kern046 Oct 26, 2017
755eb35
Implement bug and evolution details with wordings for creation
Kern046 Oct 28, 2017
473c84b
Update map configuration
Kern046 Oct 29, 2017
c422ccb
Update galaxy images
Kern046 Oct 29, 2017
5bd2c1f
Implement parser for feedback descriptions
Kern046 Oct 29, 2017
0a347c8
Implement feedback commentaries and status update
Kern046 Oct 31, 2017
8eb3c19
Translate the changelog
Kern046 Nov 1, 2017
a3c2018
Implement changelog parser as a project dependency
Kern046 Nov 1, 2017
f2b5e18
Display the current version modifications in project overview template
Kern046 Nov 1, 2017
98fedfe
Redirect user to the created feedback after form submit
Kern046 Nov 1, 2017
fe67053
Fix commercial shipping proposal
Kern046 Nov 3, 2017
c794b21
Fix commercial shipping proposal flashbag
Kern046 Nov 3, 2017
2efeb56
Fix autocomplete
Kern046 Nov 3, 2017
64a8584
Fix the admin control for feedback status update
Kern046 Nov 3, 2017
e2a4a61
Create notification when a new comment is posted on feedback
Kern046 Nov 4, 2017
1a9e733
Implement notifications when a feedback is updated
Kern046 Nov 4, 2017
9db8f50
Add updated_at field to news
Kern046 Nov 5, 2017
535a3a0
Implement basic view for article details with links from broadcasted …
Kern046 Nov 5, 2017
928d242
Fix the notifications creation when no author is registered in database
Kern046 Nov 6, 2017
dce171d
Implement situation resume for each playable faction
Kern046 Nov 6, 2017
b657703
Implement mobile responsive menu with repositionned overboxes
Kern046 Nov 10, 2017
35b9b90
Fix feedback card height overflow
Kern046 Nov 10, 2017
eff434b
Fix wording and price formatting for commercial routes
Kern046 Nov 10, 2017
ddcdc02
Fix credit dynamic update
Kern046 Nov 10, 2017
b556532
Add menu hamburger icon for mobiles
Kern046 Nov 10, 2017
a0f053a
Fix feedback access when an author has no more account
Kern046 Nov 10, 2017
3d21fac
Fix action box active class settings
Kern046 Nov 11, 2017
44f3d44
Fix notification counters issue
Kern046 Nov 17, 2017
b0ab7e8
Fix bug tracker overbox position
Kern046 Nov 17, 2017
b208da7
Fix PHP support version
Kern046 Nov 17, 2017
4b48427
Avoid decimal values for ship recycling
Kern046 Nov 17, 2017
b71cd51
Fix color manager test suite
Kern046 Nov 17, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .php_cs.cache

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ language: php
sudo: false

php:
- 7.0
- 7.1

before_script:
- cp config/parameters.dist.yml config/parameters.yml
Expand Down
26 changes: 26 additions & 0 deletions CHANGELOG.md → CHANGELOG.en.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,29 @@
## [Unreleased]
### Added
- Project management tool with feedbacks board
- Feedbacks commentaries
- New map configuration
- Newspaper and gazette
- WebSocket connection between server and clients
- WebSocket broadcasting
- News broadcasting
- Optimized and animated trade routes search
- HTTPS support
- Budget management tool
- Donation tool

### Changed
- The bug reporting and feature proposals are now in the project management tool instead of forum
- Profile experience counter

### Fixed
- Faction interface when no ranking is available
- Fleet moving to hangar and mess at arrival
- Player bonus loading
- Notifications cleaning
- Trade platform transactions acceptation
- Hourly resources gain

## [2.1.3] - 2017-08-11
### Added
- Messages when a ruler keeps his role due to election without candidates
Expand Down
122 changes: 122 additions & 0 deletions CHANGELOG.fr.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
## [Prochainement]
### Ajouté
- Gestionnaire de projet avec tableau de bord pour les retours
- Commentaires pour les bugs et évolutions
- Nouvelle configuration de carte de la galaxie
- Journal et gazette
- Connexions WebSocket entre navigateurs et serveur
- Partage en temps réel via WebSocket
- Partage en temps réel des nouvelles
- Optimisation et animation de la recherche de routes commerciales
- support de l'HTTPS
- Gestionnaire de budget
- Outil de donation

### Modifié
- Le report de bugs ainsi que la proposition d'amélioration se font maintenant en jeu au lieu du forum
- Compteur d'expérience sur la page profil

### Corrigé
- Espace faction quand aucun classement n'a été fait
- Flottes allant au hangar et au mess après un déplacement
- Chargement des bonus de joueur
- Nettoyage des notifications
- Validation de transactions sur la plateforme commerciale
- Gain de ressources à la relève

## [2.1.3] - 2017-08-11
### Ajouté
- Message quand un dirigeant conserve sa place après une élection sans candidats
- Gestion d'une élection sans candidat lorsqu'aucun gouvernement n'existe

### Modifié
- Les comptes inactifs sont maintenant accessibles en environnement de développement

### Corrigé
- Elections sans candidats (messages vides et blocage de cycle électoral)
- Limite de ressources des endroits vides
- Différence de position de classement

### Supprimé
- Journalisation réccurrente d'erreurs utilisateur

## [2.1.2] - 2017-08-09
### Ajouté
- Stockage des données d'appartenance territoriale dans Redis

### Corrigé
- Désertion des commandants quand leur base est conquise
- Affichage des attaques entrantes dans l'amirauté
- Données d'appartenance territoriale dans le registre tactique
- Fin de mission de recyclage
- Conversion des lieux de recyclage lorsqu'ils sont vides

## [2.1.1] - 2017-07-23
### Ajouté
- Mise en évidence des rapports de combat et d'espionnage visualisés dans les listes
- Execution quotidienne du nettoyage de notifications et de comptes inactifs
- Execution quotidienne des calculs de classement
- Paramètre INI supprimant la limite de temps maximal d'exécution
- Gestionnaire de session via Redis

### Corrigé
- Invitations extérieures à l'inscription
- Expérience issue de l'école de commandement
- Accès à l'interface d'administration
- Investissements vides
- Message d'erreur d'une conversation sans destinataires
- Informations du bâtiment de stockage
- Alertes pour les fins de construction
- Recyclage de vaisseaux
- Récompense de parrainage
- Délais de livraison depuis la plateforme commerciale
- Abandon de capitale
- Pertes en défense après une défense victorieuse
- Accès aux données de session par les processus

## [2.1.0] - 2017-06-01
### Ajouté
- Classe Container pour les services et paramètres
- Classe centrale Application
- Autoload PSR-4 pour les tests
- Raccourci de lancement de la suite de tests
- Fichiers de configuration des paramètres et des services
- Classe principale par module avec un fichier de configuration dédié
- Patron de conception Unit of Work
- Gestionnaire d'entités modèle
- Gestionnaire de routes
- Moteur de rendu de pages
- Moteur temps réel avec serveur persistant
- Evenements et points d'écoute pour la prise territoriale
- Gestionnaire d'actions en temps réel
- Gestionnaire d'actions cycliques
- Gestionnaire de processus
- Gestionnaire de tâches
- Gestionnaire de répartition de charge pour les processus

### Modifié
- Le système de sessions de données a été supprimé de plusieurs managers
- Système de prise territoriale

### Supprimé
- Support de HHVM
- Support de PHP 5.5

## [2.0.0] - 2016-11-01
### Ajouté
* Fichier de configuration Composer
* Fichier de configuration PHPUnit
* Chargement automatique selon norme PSR-4
* Fichier de configuration Travis CI
* Fichier de configuration Scrutinizer CI
* Fichier de configuration d'éditeur
* Fichiers de configuration de NPM et Gulp

### Modifié
* Les classes sont chargées par nom de domaine plutôt que par inclusion manuelle
* Les points de nom de script remplacés par des underscores

### Supprimé
* Inclusion manuelle des fichiers de jeu
* Constantes de localisation des modules

101 changes: 101 additions & 0 deletions build/database/structure.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
START TRANSACTION;

CREATE TABLE `budget__charges` (
`transaction_id` int(10) UNSIGNED NOT NULL,
`category` varchar(15) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

CREATE TABLE `budget__donations` (
`transaction_id` int(10) UNSIGNED NOT NULL,
`player_bind_key` varchar(50) NOT NULL,
`token` varchar(30) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

CREATE TABLE `budget__transactions` (
`id` int(10) UNSIGNED NOT NULL,
`transaction_type` varchar(12) NOT NULL,
`amount` int(10) NOT NULL,
`created_at` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

CREATE TABLE `candidate` (
`id` int(10) UNSIGNED NOT NULL,
`rElection` int(10) UNSIGNED NOT NULL,
Expand Down Expand Up @@ -238,6 +257,36 @@ CREATE TABLE `law` (
`dCreation` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

CREATE TABLE `news` (
`id` int(10) UNSIGNED NOT NULL,
`title` varchar(255) NOT NULL,
`content` text,
`type` varchar(15) NOT NULL,
`weight` tinyint(4) NOT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

CREATE TABLE `news__military` (
`news_id` int(10) UNSIGNED NOT NULL,
`attacker_id` int(10) UNSIGNED NOT NULL,
`defender_id` int(10) UNSIGNED NOT NULL,
`place_id` int(10) UNSIGNED NOT NULL,
`type` varchar(15) NOT NULL,
`is_victory` tinyint(4) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

CREATE TABLE `news__politics` (
`news_id` int(10) UNSIGNED NOT NULL,
`faction_id` int(10) UNSIGNED NOT NULL,
`type` varchar(15) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

CREATE TABLE `news__trade` (
`news_id` int(10) UNSIGNED NOT NULL,
`transaction_id` int(10) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

CREATE TABLE `notification` (
`id` int(10) UNSIGNED NOT NULL,
`rPlayer` int(10) UNSIGNED NOT NULL,
Expand Down Expand Up @@ -710,6 +759,15 @@ DROP TABLE IF EXISTS `vSystemDiary`;

CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`%` SQL SECURITY DEFINER VIEW `vSystemDiary` AS select `h`.`id` AS `id`,`h`.`rPlace` AS `place`,`h`.`oldPlayer` AS `oldPlayer`,`p1`.`name` AS `oldName`,`c1`.`id` AS `oldColor`,`h`.`newPlayer` AS `newPlayer`,`p2`.`name` AS `newName`,`c2`.`id` AS `newColor`,`h`.`dChangement` AS `dChangement`,`p`.`position` AS `position`,`p`.`rSystem` AS `system` from (((((`changeColorPlace` `h` left join `place` `p` on((`p`.`id` = `h`.`rPlace`))) left join `player` `p1` on((`h`.`oldPlayer` = `p1`.`id`))) left join `color` `c1` on((`p1`.`rColor` = `c1`.`id`))) left join `player` `p2` on((`h`.`newPlayer` = `p2`.`id`))) left join `color` `c2` on((`p2`.`rColor` = `c2`.`id`))) order by `h`.`dChangement` desc limit 0,5000 ;

ALTER TABLE `budget__charges`
ADD KEY fkChargeId (`transaction_id`);

ALTER TABLE `budget__donations`
ADD KEY fkDonationId (`transaction_id`),
ADD KEY `fkPlayerBindKey` (`player_bind_key`);

ALTER TABLE `budget__transactions`
ADD PRIMARY KEY (`id`);

ALTER TABLE `candidate`
ADD PRIMARY KEY (`id`),
Expand Down Expand Up @@ -795,6 +853,23 @@ ALTER TABLE `notification`
ADD PRIMARY KEY (`id`),
ADD KEY `fkNotificationPlayer` (`rPlayer`);

ALTER TABLE `news`
ADD PRIMARY KEY (`id`);

ALTER TABLE `news__military`
ADD KEY `fkMilitaryNews` (`news_id`),
ADD KEY `fkAttacker` (`attacker_id`),
ADD KEY `fkDefender` (`defender_id`),
ADD KEY `fkPlace` (`place_id`);

ALTER TABLE `news__politics`
ADD KEY `fkPoliticsNews` (`news_id`),
ADD KEY `fkFaction` (`faction_id`);

ALTER TABLE `news__trade`
ADD KEY `fkTradeNews` (`news_id`),
ADD KEY `fkTransaction` (`transaction_id`);

ALTER TABLE `orbitalBase`
ADD PRIMARY KEY (`rPlace`),
ADD KEY `fkOrbitalBasePlayer` (`rPlayer`);
Expand All @@ -815,6 +890,7 @@ ALTER TABLE `place`
ALTER TABLE `player`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `name_UNIQUE` (`name`),
ADD KEY `fkBindKey` (`bind`),
ADD KEY `fkPlayerColor` (`rColor`),
ADD KEY `fkPlayerPlayer` (`rGodfather`);

Expand Down Expand Up @@ -894,6 +970,8 @@ ALTER TABLE `voteLaw`
ADD KEY `fkVoteLawPlayer` (`rPlayer`);


ALTER TABLE `budget__donations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
ALTER TABLE `candidate`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
ALTER TABLE `changeColorPlace`
Expand Down Expand Up @@ -934,6 +1012,8 @@ ALTER TABLE `forumTopic`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
ALTER TABLE `law`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
ALTER TABLE `news`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
ALTER TABLE `notification`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=43;
ALTER TABLE `orbitalBaseBuildingQueue`
Expand Down Expand Up @@ -977,6 +1057,13 @@ ALTER TABLE `vote`
ALTER TABLE `voteLaw`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

ALTER TABLE `budget__charges`
ADD CONSTRAINT `fkChargeId` FOREIGN KEY (`transaction_id`) REFERENCES `budget__transactions` (`id`);

ALTER TABLE `budget__donations`
ADD CONSTRAINT `fkDonationId` FOREIGN KEY (`transaction_id`) REFERENCES `budget__transactions` (`id`),
ADD CONSTRAINT `fkPlayerBindKey` FOREIGN KEY (`player_bind_key`) REFERENCES `player` (`bind`);

ALTER TABLE `candidate`
ADD CONSTRAINT `fkCandidateElection` FOREIGN KEY (`rElection`) REFERENCES `election` (`id`),
ADD CONSTRAINT `fkCandidatePlayer` FOREIGN KEY (`rPlayer`) REFERENCES `player` (`id`);
Expand Down Expand Up @@ -1017,6 +1104,20 @@ ALTER TABLE `law`
ALTER TABLE `notification`
ADD CONSTRAINT `fkNotificationPlayer` FOREIGN KEY (`rPlayer`) REFERENCES `player` (`id`);

ALTER TABLE `news__military`
ADD CONSTRAINT `fkMilitaryNews` FOREIGN KEY (`news_id`) REFERENCES `news` (`id`),
ADD CONSTRAINT `fkAttacker` FOREIGN KEY (`attacker_id`) REFERENCES `player` (`id`),
ADD CONSTRAINT `fkDefender` FOREIGN KEY (`defender_id`) REFERENCES `player` (`id`),
ADD CONSTRAINT `fkPlace` FOREIGN KEY (`place_id`) REFERENCES `place` (`id`);

ALTER TABLE `news__politics`
ADD CONSTRAINT `fkPoliticsNews` FOREIGN KEY (`news_id`) REFERENCES `news` (`id`),
ADD CONSTRAINT `fkFaction` FOREIGN KEY (`faction_id`) REFERENCES `color` (`id`);

ALTER TABLE `news__trade`
ADD CONSTRAINT `fkTradeNews` FOREIGN KEY (`news_id`) REFERENCES `news` (`id`),
ADD CONSTRAINT `fkTransaction` FOREIGN KEY (`transaction_id`) REFERENCES `transaction` (`id`);

ALTER TABLE `orbitalBase`
ADD CONSTRAINT `fkOrbitalBasePlace` FOREIGN KEY (`rPlace`) REFERENCES `place` (`id`),
ADD CONSTRAINT `fkOrbitalBasePlayer` FOREIGN KEY (`rPlayer`) REFERENCES `player` (`id`);
Expand Down
6 changes: 5 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@
"symfony/config": "~2.6",
"symfony/yaml": "~2.6",
"ocramius/proxy-manager": "^2.0",
"incenteev/composer-parameter-handler": "~2.0"
"incenteev/composer-parameter-handler": "~2.0",
"stripe/stripe-php": "^5.2",
"wrench/wrench": "^3.0-dev",
"guzzlehttp/guzzle": "^6.3",
"kern046/changelog-parser": "^0.1.2"
},

"scripts": {
Expand Down
Loading