forked from nfqakademija/kickstart
-
Notifications
You must be signed in to change notification settings - Fork 33
HW 3 #301
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
Open
aurelijusbanelis
wants to merge
45
commits into
aurelijusb:homework-2019-11-19
Choose a base branch
from
Matasj98:master
base: homework-2019-11-19
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
HW 3 #301
Changes from all commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
2f9bedd
Pridedame Secrurity biblioteką
aurelijusb d22a83b
Pridedam profiler biblioteką puslapio informacijos juostai
aurelijusb 2666d30
Susikuriame naudotojo klasę
aurelijusb e41da46
Atnaujiname duomenų bazę
aurelijusb 4025599
Prisidedame Validator biblioteką
aurelijusb 138331f
Susikuriame registracijos formą
aurelijusb 270b11b
Sugeneruojame prisjungimo formos pavyzdį
aurelijusb 5361650
Pataisome nukreipimą po prisijungimo
aurelijusb cd87b91
Naudotojo objekto pasiekimas iš Twig
aurelijusb 3a55cff
Naudotojo objekto pasiekimas iš Controller'io
aurelijusb d003017
Pridedame EasyAdminBundle biblioteką (receptą)
aurelijusb afec7c1
Pataisome EasyAdmin konfiguraciją
aurelijusb b0801dd
Apribojame Administavimą tik registruotiems naudotojams
aurelijusb 85be5f1
Sukuriam Console's komandą
aurelijusb 90dd1dc
Įgyvendinam komandą rolei pakelti
aurelijusb c28cde1
Praplečiame TwigBundle klaidų šabloną
aurelijusb f93981f
Praplečiame EasyAdmin šabloną: Surandame originalų šabloną
aurelijusb 9eb5935
Praplečiame EasyAdmin šabloną: pakeičiam turinį
aurelijusb 42f5107
Praplečiame EasyAdmin nustatymus: laukų atvaizdavimas
aurelijusb 98518eb
Registracijos dizainas per konfiguraciją
aurelijusb 494f71a
Naujų laukų pridėjimas: Papildome Entity (duomenų modelį)
aurelijusb 04c5115
Naujų laukų pridėjimas: Atnaujiname duomenų bazę
aurelijusb 771d118
Naujų laukų pridėjimas: Papildome formas ir kitus dizaino elementus
aurelijusb 654c2d0
Po registracijos naudotoją prijungiame automatiškai
aurelijusb e330682
Patogumui: Pataisome redagavimą nenurodant slaptažodžio
aurelijusb a1befa0
Naujų laukų pridėjimas: Konfiguracija EasyAdminBundle
aurelijusb 08cbf1b
Sukuriame EventSubscriber pavyzdį
aurelijusb 1ed3041
Užregistruojame event'ą Symfony karkase
aurelijusb 2a347c4
Įgyvendiname: slaptažodžio pakeitimo datos laukelį
aurelijusb 87e504e
Atnaujiname duomenų bazę
aurelijusb 820e8d2
Building project and smoke tests
aurelijusb dd1556a
Running end to end (Browser) tests
aurelijusb 96d2eb9
Simple tests
aurelijusbanelis 13f5db8
Simple e2e test
aurelijusb e91e36f
Register new user
aurelijusb ccf8b96
Add test user to database
aurelijusb 5dbad68
More complex tests
aurelijusb de5c179
Fix naming
aurelijusb 6afa700
Case insensitive tests
aurelijusb 0848ebc
HOMEWORK 3
Matasj98 6f09767
confilcts fixed
Matasj98 9187df8
fix
Matasj98 81976ec
D
Matasj98 b40ed09
d
Matasj98 fda1669
ddda
Matasj98 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| <?php | ||
|
|
||
| declare(strict_types=1); | ||
|
|
||
| namespace DoctrineMigrations; | ||
|
|
||
| use Doctrine\DBAL\Schema\Schema; | ||
| use Doctrine\Migrations\AbstractMigration; | ||
|
|
||
| /** | ||
| * Auto-generated Migration: Please modify to your needs! | ||
| */ | ||
| final class Version20191125144441 extends AbstractMigration | ||
| { | ||
| public function getDescription() : string | ||
| { | ||
| return ''; | ||
| } | ||
|
|
||
| public function up(Schema $schema) : void | ||
| { | ||
| // this up() migration is auto-generated, please modify it to your needs | ||
| $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); | ||
|
|
||
| $this->addSql('ALTER TABLE user CHANGE roles roles JSON NOT NULL, CHANGE homepage homepage VARCHAR(255) DEFAULT NULL, CHANGE password_changed password_changed DATETIME DEFAULT NULL'); | ||
| } | ||
|
|
||
| public function down(Schema $schema) : void | ||
| { | ||
| // this down() migration is auto-generated, please modify it to your needs | ||
| $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); | ||
|
|
||
| $this->addSql('ALTER TABLE user CHANGE roles roles LONGTEXT NOT NULL COLLATE utf8mb4_bin, CHANGE password_changed password_changed DATETIME DEFAULT \'NULL\', CHANGE homepage homepage VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci'); | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| <?php | ||
|
|
||
| declare(strict_types=1); | ||
|
|
||
| namespace DoctrineMigrations; | ||
|
|
||
| use Doctrine\DBAL\Schema\Schema; | ||
| use Doctrine\Migrations\AbstractMigration; | ||
|
|
||
| /** | ||
| * Auto-generated Migration: Please modify to your needs! | ||
| */ | ||
| final class Version20191125145851 extends AbstractMigration | ||
| { | ||
| public function getDescription() : string | ||
| { | ||
| return ''; | ||
| } | ||
|
|
||
| public function up(Schema $schema) : void | ||
| { | ||
| // this up() migration is auto-generated, please modify it to your needs | ||
| $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); | ||
|
|
||
| $this->addSql('ALTER TABLE user ADD linkedin VARCHAR(255) DEFAULT NULL, CHANGE roles roles JSON NOT NULL, CHANGE homepage homepage VARCHAR(255) DEFAULT NULL, CHANGE password_changed password_changed DATETIME DEFAULT NULL'); | ||
| } | ||
|
|
||
| public function down(Schema $schema) : void | ||
| { | ||
| // this down() migration is auto-generated, please modify it to your needs | ||
| $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); | ||
|
|
||
| $this->addSql('ALTER TABLE user DROP linkedin, CHANGE roles roles LONGTEXT NOT NULL COLLATE utf8mb4_bin, CHANGE password_changed password_changed DATETIME DEFAULT \'NULL\', CHANGE homepage homepage VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci'); | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Šis failas nėra būtinas. Nes neprideda jokių laukų
src/Migrations/Version20191125145851.phppadengia viską.Verta mokintis nepalikinėti šiukšlių