Changes between Version 3 and Version 4 of ImportantUseCase1


Ignore:
Timestamp:
01/21/22 22:12:32 (3 years ago)
Author:
191151
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ImportantUseCase1

    v3 v4  
    2424
    2525{{{
    26 UPDATE project.users
    27         SET email_verified_at = now(),updated_at = now()
    28         WHERE id=6;
     26update project.artists
     27        set admin_verified_at  = now()
     28        where user_id = (
     29                select u.id from users u
     30                        where u.email = 'test_artist@mail.com'
     31        );
    2932
    3033INSERT INTO project.artists (user_id,birth_date,city,country,artist_type_id)
    31         VALUES (6,'2000-01-01','Skopje','North Macedonia',1);
     34        VALUES ((
     35                select u.id from users u
     36                        where u.email = 'test_artist@mail.com'
     37        ),'2000-01-01','Skopje','North Macedonia',1);
    3238}}}
    3339
     
    3945UPDATE project.artists
    4046        SET admin_verified_at = now()
    41         WHERE user_id = 6;
     47        WHERE user_id = (
     48                select u.id from users u
     49                        where u.email = 'test_artist@mail.com'
     50        );
    4251}}}
    4352